SA-MP Forums Archive
SetTimerEx (true or false) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetTimerEx (true or false) (/showthread.php?tid=475101)



SetTimerEx (true or false) - AnonScripter - 11.11.2013

pawn Код:
SetTimerEx("SomeForward", 60000, false, "i", playerid);
what true or false means here ?


Re: SetTimerEx (true or false) - Evocator - 11.11.2013

https://sampwiki.blast.hk/wiki/SetTimerEx


Re: SetTimerEx (true or false) - SAMProductions - 11.11.2013

Boolean: True or False || 1 or 0;

Means if you want to Repeat it or not;

Boolean (True or False || 1 or 0) that states whether theTimer should be called repeatedly (You can stop it by using KillTimer) or only Once.


Re: SetTimerEx (true or false) - Loot - 11.11.2013

As being said above,
pawn Код:
SetTimerEx("SomeForward", 60000, false, "i", playerid); // execute the timer only ONCE
could be written as
pawn Код:
SetTimerEx("SomeForward", 60000, 0, "i", playerid); // execute the timer only ONCE
or
pawn Код:
SetTimerEx("SomeForward", 60000, true, "i", playerid); // execute the timer repeatedly
as
pawn Код:
SetTimerEx("SomeForward", 60000, 1, "i", playerid); // execute the timer repeatedly