Hallo leute ich mache im moment ein MYSQL Roleplay script.
Und die Speicherung klappt net das laden schon aber speichern nein!
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(sStats[playerid][Eingeloggt] == 1)
{
GetPlayerName(playerid, sStats[playerid][pName], MAX_PLAYER_NAME);
new pip[16];
GetPlayerIp(playerid,pip,sizeof(pip));
new string[3500];
format(string,sizeof(string),"UPDATE accounts SET Level='%i',Money='%i',Kills='%i',Tote='%i',Adminlevel='%i',pMember='%i',pLeader='%i',Gebannt='%i',Skin = '%i',Premium = '%i',Fuehrerschein = '%i',Waffenschein = '%i',Ip : '%s',Friedhof = '%i', WHERE = '%s'",
GetPlayerScore(playerid),GetPlayerMoney(playerid),sStats[playerid][pTode],sStats[playerid][pKills],sStats[playerid][Adminlevel],sStats[playerid][pMember],sStats[playerid][pLeader],sStats[playerid][Gebannt],GetPlayerSkin(playerid),sStats[playerid][Premium],sStats[playerid][Fuehrerschein],sStats[playerid][Waffenschein],sStats[playerid][pDead],
Spielername(playerid));
mysql_query(string);
}
}
return 1;
}