How to kill timers
#1

Hello there everybody, hope you all doing great,
so, as the title states, how to destroy a timer, and no, I do not refer to the native timers that SA-MP supports, I'm talking about y_timers from YSI,

I do this usually
PHP код:
stop TIMER(); 
But is it equivalent to?
PHP код:
killTimer(TIMER); 
thanks in advance!
Reply
#2

Run the second code on a repeating timer. Whether it kills it or not, there's your answer.
Reply
#3

I'd use the second one though.
Reply
#4

Its just a fancy macro alias (from y_timers v3)
PHP код:
#define stop%0; {KillTimer(_:%0);} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)