Probleme mit demm laden und Spiechern denn ic hweiss net wie ich es schreiben soll ich habe es so:
stock LoadFrakCars()
{
for(new v=0; v<MAX_FRAKTIONSCARS; v++)
{
FCar[v][FraktionsID] = mysql_GetFrakInt("FraktionsCars","Fraktion");
FCar[v][fvID] = mysql_GetFrakInt("FraktionsCars","FVehicleID");
FCar[v][fc1] = mysql_GetFrakInt("FraktionsCars","Color1");
FCar[v][fc2] = mysql_GetFrakInt("FraktionsCars","Color2");
FCar[v][fx] = mysql_GetFloat("FraktionsCars","FraktionsX");
FCar[v][fy] = mysql_GetFloat("FraktionsCars","FraktionsY");
FCar[v][fz] = mysql_GetFloat("FraktionsCars","FraktionsZ");
FCar[v][fa] = mysql_GetFloat("FraktionsCars","FraktionsA");
}
return 1;
}
stock SaveFrakCars()
{
for(new v=0; v<MAX_FRAKTIONSCARS; v++)
{
mysql_SetFrakInt("FraktionsCars","FraktionID",FCar[v][FraktionsID]);
mysql_SetFrakInt("FraktionsCars","FraktionsVehicleID",FCar[v][fvID]);
mysql_SetFrakInt("FraktionsCars","FraktionsColor1",FCar[v][fc1]);
mysql_SetFrakInt("FraktionsCars","FraktionsColor2",FCar[v][fc2]);
mysql_SetFloat("FraktionsCars","FraktionsX",FCar[v][fx]);
mysql_SetFloat("FraktionsCars","FraktionsY",FCar[v][fy]);
mysql_SetFloat("FraktionsCars","FraktionsZ",FCar[v][fz]);
mysql_SetFloat("FraktionsCars","FraktionsA",FCar[v][fa]);
}
}
Un bekomme dieser warnings:
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5331) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5331) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5332) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5332) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5333) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5333) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5334) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5334) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5346) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5346) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5347) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5347) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5348) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5348) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5349) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(5349) : warning 202: number of arguments does not match definition
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(6588) : warning 203: symbol is never used: "FrakAutoHaus"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
17 Warnings.
Hir das enum:
#define MAX_FRAKTIONSCARS 500
enum FCarDaten {
FraktionsID,
fvID,
fc1,
fc2,
Float:fx,
Float:fy,
Float:fz,
Float:fa
};
new FCar[MAX_FRAKTIONSCARS][FCarDaten];
Danke im vorraus
//EDIT habe ein paar warnings weg bekommen