08.02.2013, 23:09
Guys my score don't save when I relog in my server, can somebody help me please?
public OnPlayerDisconnect(playerid, reason) { new spieler[256]; new string[256]; GetPlayerName(playerid, player, sizeof(player)); format(string, sizeof(string), "*** %s [ID: %d] has left the server.", player,playerid); SendLanguageMessageToAll(Yellow, string); OnPlayerUpdateAccount(playerid); AccountInfo[playerid][Jail] = 0; AccountInfo[playerid][AdminLevel] = 0; AccountInfo[playerid][Logged] = 0; AccountInfo[playerid][Mute] = 0; AccountInfo[playerid][pInt] = 0; AccountInfo[playerid][pLocal] = 255; AccountInfo[playerid][DBKilled] = 0; AccountInfo[playerid][DMLeft] = 0; AccountInfo[playerid][Score] = 0; Drugs[playerid] = 0; Hide[playerid] = 0; SuperPunch[playerid] = 0; DM[playerid] = 0; DMInvited[playerid] = 0; PlayerAFK[playerid] = 0; Spam[playerid] = 0; SpamCMD[playerid] = 0; Spawned[playerid] = 0; PlayerCapital[playerid][Money] = 0; return true; }
AccountInfo[playerid][Score] = 0;
AccountInfo[playerid][Score] = GetPlayerScore(playerid);