Servus ,
ich habe ein problem undswar das mein
Geld und Skin nicht ladet genau wie der rest.
Wenn ich es ingame setze dann speichert das irgendwie nicht ( fraktion zmb )
aber per Datenbank geht das.
Mein Enum :
enum SpielerInfo{
level,
eingeloggt,
id,
alevel,
geld,
fraktion,
rang,
schange,
WLevel,
skin,
knast,
ngknast,
hstatus,
sjob
}
OnPlayerDisconnect
if(sInfo[playerid][eingeloggt]==0)return 1;//Speichert keine leute die nicht eingeloggt sind
new query[256];
new query2[256];
format(query,sizeof(query),"UPDATE user SET level='%i',geld='%i', skin='%i' , alevel='%i', fraktion='%i', rang='%i', schange='%i', WLevel='%i', knast='%i', ngknast='%i' , hstatus='i' WHERE id='%i'",sInfo[playerid][level],GetPlayerMoney(playerid),GetPlayerSkin(playerid),sInfo[playerid][alevel],sInfo[playerid][fraktion],sInfo[playerid][rang],sInfo[playerid][schange],GetPlayerWantedLevel(playerid),sInfo[playerid][knast],sInfo[playerid][ngknast],sInfo[playerid][hstatus],sInfo[playerid][id]);
format(query,sizeof(query),"UPDATE user SET sjob='%i' WHERE id='%i'",sInfo[playerid][sjob],sInfo[playerid][id]);
mysql_function_query(dbhandle,query,false,"","");
mysql_function_query(dbhandle,query2,false,"","");
Wenn das Passwort richtig ist(Lade funktion)
sInfo[playerid][eingeloggt] = 1;
sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
SetPlayerScore(playerid,sInfo[playerid][level]);
sInfo[playerid][id] = cache_get_field_content_int(0,"id",dbhandle);
GivePlayerMoney(playerid,cache_get_field_content_int(0,"geld",dbhandle));
sInfo[playerid][alevel] = cache_get_field_content_int(0,"alevel",dbhandle);
sInfo[playerid][fraktion] = cache_get_field_content_int(0,"fraktion",dbhandle);
sInfo[playerid][rang] = cache_get_field_content_int(0,"rang",dbhandle);
sInfo[playerid][schange] = cache_get_field_content_int(0,"schange",dbhandle);
sInfo[playerid][knast] = cache_get_field_content_int(0,"knast",dbhandle);
sInfo[playerid][ngknast] = cache_get_field_content_int(0,"ngknast",dbhandle);
sInfo[playerid][hstatus] = cache_get_field_content_int(0,"hstatus",dbhandle);
sInfo[playerid][sjob] = cache_get_field_content_int(0,"sjob",dbhandle);
SetPlayerWantedLevel(playerid,cache_get_field_content_int(0,"WLevel",dbhandle));
SetPlayerSkin(playerid,cache_get_field_content_int(0,"skin",dbhandle));
FahrzeugvonDB(playerid);
Ich hoffe mir kann einer helfen.
MFG dreamer