SetTimer and SetTimerEx
#1

what is the difference between SetTimer and SetTimerEx?

is there any way to kill settimerEx??


pls help!!!
Reply
#2

Settimer=https://sampwiki.blast.hk/wiki/SetTimer
SettimerEx=https://sampwiki.blast.hk/wiki/SetTimerEx
Reply
#3

the difference is one calls a public function at a set interval

the other SetTimerEx does the same
however it allows you to also pass arguments to the function
Thats the only difference i can tell.
Reply
#4

This will run the timer for only one person.
pawn Код:
SetTimer("KillPlayer",5000,false);
This will run a timer for each player so as to not get mixed up timers.
pawn Код:
SetTimerEx("KillPlayer",5000,false,"d",playerid);
Reply
#5

SetTimer is for calling functions with no parameters.
SetTimerEx is for calling functions with params.

To kill any timer.
pawn Код:
new timer = SetTimerEx("somefunc", 1000, false, "dd", 1, 3);
KillTimer(timer);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)