Time updating again and again
#2

pawn Код:
//updated
new pTimer[MAX_PLAYERS];

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(pTimer[playerid]);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    new GameTimer;
    pTimer[playerid] = SetTimerEx("GameTime",1000,1,"i",playerid);
    return 1;
}
Try this.

I'd do it with PVars, then save it to an .ini file on disconnect. ; )

EDIT: Whoops. You should define a timer for every single player. Updated.
Reply


Messages In This Thread
Time updating again and again - by Bogdan1992 - 28.12.2011, 19:29
Re: Time updating again and again - by Seven_of_Nine - 28.12.2011, 19:34
Re: Time updating again and again - by Bogdan1992 - 28.12.2011, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)