Difference between y_timer and SetTimer ?
#1

Hi,


I read this tutorial : https://sampforum.blast.hk/showthread.php?tid=182948

And I wanted to know what's the difference between y_timer and SetTimer. And what's better to use.
Does it have inconvenients ?


Thank you
Reply
#2

1) Stop bumping - the rules state that you can't double post inside24 hours.

2) The main difference is syntax and compiler integration. The compiler can check that you call a y_timers timer correctly, but not SetTimer. If you get the parameters wrong or spell the function name wrong you will get errors. Also, y_timers correctly supports strings and arrays, SetTimerEx doesn't.
Reply
#3

Sorry for the bumps.
So y_timers isnt "faster" or something like that against SetTimer ?

Thank you !
Reply
#4

No, just simpler and more secure.
Reply
#5

Okay thank you ColeMiner !
+Rep
Reply
#6

I find y_timers MUCH easier to use. SetTimer(Ex) gets annoying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)