[Help]KillTimer(id?!)
#1

Hey there,

KillTimer requires the timer's ID you want to "kill" ... i already got too many timers in my GM and it's a bit complicated , how may i know which ID is, for an example , SetTimer("mytimer", xx, xx, x) <<<< how can i get the ID of this timer ?

Thanks .
Reply
#2

When you use SetTimer use it like

SexyTimer = SetTimer(.....)

and then

KillTimer(SexyTimer)
Reply
#3

Make a variable for it.
pawn Код:
//OnTop:
new MyEpicTimer;
//Where you create the timer:
MyEpicTimer = SetTimer("MySuperFunction", blah blah);
//And where you want to kill it:
KillTimer(MyEpicTimer);
Reply
#4

Works , thanks .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)