SetTimerEx (true or false)
#1

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

https://sampwiki.blast.hk/wiki/SetTimerEx
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)