SetTimer and SetTimerEx
#3

Thanks and 1 more question, is the timer auto killed if player logs out.

Example #1:

Code:
OnPlayerConnect(playerid)
{
SetTimerEx("Function2", 120000, false, "i", playerid);

return 1;
}
Example #2:

Code:
new timergoing[MAX_PLAYERS];
OnPlayerConnect(playerid)
{
timergoing[playerid] = SetTimerEx("Function2", 120000, false, "i", playerid);

return 1;
}
Example #3:

Code:
OnPlayerConnect(playerid)
{
SetTimer("Function",80000,false);

return 1;
}
Funtions:
Code:
Function (playerid)
{

// code

return 1;
} 
Function2 ()
{

// code

return 1;
}
Reply


Messages In This Thread
SetTimer and SetTimerEx - by Penguin1997 - 14.08.2016, 20:39
Re: SetTimer and SetTimerEx - by Vince - 14.08.2016, 20:56
Re: SetTimer and SetTimerEx - by Penguin1997 - 15.08.2016, 10:50
Re: SetTimer and SetTimerEx - by Stinged - 15.08.2016, 11:46
Re: SetTimer and SetTimerEx - by Logic_ - 15.08.2016, 15:40
Re: SetTimer and SetTimerEx - by Penguin1997 - 15.08.2016, 16:18
Re: SetTimer and SetTimerEx - by Stinged - 15.08.2016, 17:26
Re: SetTimer and SetTimerEx - by Kar - 18.08.2016, 00:30
Re: SetTimer and SetTimerEx - by Mister0 - 19.08.2016, 11:28
Re: SetTimer and SetTimerEx - by WhiteGhost - 19.08.2016, 12:06

Forum Jump:


Users browsing this thread: 3 Guest(s)