saving data using a timer
#2

Basically, it's going to be something like this:

pawn Код:
public OnPlayerSpawn(playerid)
{
     SetTimerEx("Savedata", 180000, true, "i", playerid);
     return 1;
}

forward Savedata(playerid);

public Savedata(playerid)
{
     SavePlayerData(playerid);
     return 1;
}
I think this shall work fine.

EDIT: If you're having any problem please post below.
Reply


Messages In This Thread
saving data using a timer - by Fernado Samuel - 27.03.2013, 23:20
Re: saving data using a timer - by Private200 - 27.03.2013, 23:26
Re: saving data using a timer - by Joshman543 - 28.03.2013, 00:15
Re: saving data using a timer - by TheArcher - 28.03.2013, 00:22
Re: saving data using a timer - by Fernado Samuel - 28.03.2013, 11:38
Re: saving data using a timer - by TheArcher - 28.03.2013, 11:40
Re: saving data using a timer - by Fernado Samuel - 28.03.2013, 11:42
Re: saving data using a timer - by Patrick - 28.03.2013, 11:44
Re: saving data using a timer - by TheArcher - 28.03.2013, 11:49
Re: saving data using a timer - by Fernado Samuel - 28.03.2013, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)