Abend,
Ich habe ein Problem, wenn ich mich Registriere, Dann klappt alles, ich logge mich aus und dann wieder ein, wir auch der Skin sowie Geld und Position Geladen.
Jedoch wenn ich jetzt den Server-Restarte, habe ich dann den CJ Skin und Spawne in Blueberry (Spawn ist wo man sich ausgeloggt hat).
Hier mein Speicher sstock :
stock SpielerSpeichern(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
new query[1000];
format(query, sizeof(query), "UPDATE `accounts` SET `Level` = '%d', `Admin` = '%d', `Geld` = '%d', `Kills` = '%d', `Tode` = '%d', `FM` = '%d', `Skin` = '%d', `Frak` = '%d', `Rang` = '%d', `pX` = '%f', `pY` = '%f', `pZ` = '%f', `Alter` = '%d' WHERE `Name` = '%s'",
PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pGeld],PlayerInfo[playerid][pKills],PlayerInfo[playerid][pTode],PlayerInfo[playerid][pFM],PlayerInfo[playerid][pSkin],
PlayerInfo[playerid][pFrak],PlayerInfo[playerid][pRang],PlayerInfo[playerid][pPx],PlayerInfo[playerid][pPy],PlayerInfo[playerid][pPz],PlayerInfo[playerid][pName]);
mysql_query(query);
}
}
return 1;
}
Mein LoadPlayer Stock :
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
new str[520];
format(str,sizeof str,"SELECT * FROM `accounts` WHERE `Name` = '%s'",SpielerName(playerid));
mysql_query(str);
mysql_store_result();
mysql_fetch_row(str);
sscanf(str,"p<|>{i}s[24]s[130]{i}dddddddddfffd",PlayerInfo[playerid][pName],PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pGeld],PlayerInfo[playerid][pKills],PlayerInfo[playerid][pTode],
PlayerInfo[playerid][pFM],PlayerInfo[playerid][pSkin],PlayerInfo[playerid][pFrak],PlayerInfo[playerid][pRang],PlayerInfo[playerid][pPx],PlayerInfo[playerid][pPy],PlayerInfo[playerid][pPz],PlayerInfo[playerid][pAge]);
mysql_free_result();
}
return 1;
}
Hoffentlich kann mir einer von euch Helfen...