Server Restart = Lose Stats
#7

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Score",GetPlayerScore(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_Close(File);
    return 1;
}
Reply


Messages In This Thread
Server Restart = Lose Stats - by Admigo - 12.09.2012, 19:18
Re: Server Restart = Lose Stats - by HairStyle - 12.09.2012, 19:28
Re: Server Restart = Lose Stats - by sniperwars - 12.09.2012, 19:31
Re: Server Restart = Lose Stats - by Admigo - 12.09.2012, 19:32
Re: Server Restart = Lose Stats - by trapstar2020 - 12.09.2012, 19:33
Re: Server Restart = Lose Stats - by HairStyle - 12.09.2012, 19:34
Re: Server Restart = Lose Stats - by sniperwars - 12.09.2012, 19:35
Re: Server Restart = Lose Stats - by antonio112 - 12.09.2012, 19:38
Re: Server Restart = Lose Stats - by Admigo - 12.09.2012, 19:44
Re: Server Restart = Lose Stats - by DaRealShazz - 12.09.2012, 19:46

Forum Jump:


Users browsing this thread: 2 Guest(s)