when to use SetTimer, SetTimerEx and KillTimer
#1

Hello... my question is

when to use SetTimer, SetTimerEx and KillTimer

thanks
Reply
#2

Look them up on wiki.

Basically, SetTimerEx is SetTimer with parameters, if you want to send random messages to everybody etc. then SetTimer is enough, but when you want a timer to be only for 1 person, you use SetTimerEx. KillTimer is used to kill a timer, like stop it working.

Like:
pawn Код:
new timerid123 = SetTimer("SendRandomMessage", 1000*30*7, true);
KillTimer(timerid123);
Reply
#3

SetTimer sets a timer for everyone,SetTimerEx sets a timer for a certain player only,KillTimer kills the timer(stops the timer),you can search on ****** about it.
Reply
#4

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)