when server restarts ....
#1

hey,

How to make when the server restart it saves the players stats? because its only saving when the player disconnects, so if server restart the player stats won't save, i want it to save when server restart

PHP Code:
public OnPlayerDisconnect(playeridreason)
{
    
    new 
INI:File INI_Open(UserPath(playerid));
    
INI_SetTag(File,"data");
    
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    
INI_WriteInt(File,"Admin",SInfo[playerid][pAdmin]);
    
INI_Close(File);

i have more but i won't write them all
Reply


Messages In This Thread
when server restarts .... - by HardBoy - 28.09.2012, 07:15
Re: when server restarts .... - by XtremeR - 28.09.2012, 07:18
Re: when server restarts .... - by HardBoy - 28.09.2012, 07:29
Re: when server restarts .... - by HardBoy - 28.09.2012, 08:01

Forum Jump:


Users browsing this thread: 1 Guest(s)