SA-MP Forums Archive
Information: Timer [2Questions] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Information: Timer [2Questions] (/showthread.php?tid=310102)



Information: Timer [2Questions] - Veng3eur - 10.01.2012

can i use 2 timer on the meme time??


Re: Information: Timer [2Questions] - Veng3eur - 11.01.2012

Help please, up


Re: Information: Timer [2Questions] - Gh05t_ - 11.01.2012

OnPlayerUpdate is called several times per second. A timer may be called, once or multiple times. Timers are believed to be more efficient that the OnPlayerUpdate function, though, you can differentiate the two depending on the usage. An example would be creating an anti-cheat. If you were to create an effective anti-cheat, calling the timer or function which executes the code several times would decrease the chances of hacking rather, than once. This is true, as there may be a delay within the timer which may cause an interval in between milliseconds for the hack to be initiated. Though, as stated before, it all depends of the usage. y_timers within the YSI directory by ******, may be an easier and more effective solution when dealing with timers. https://sampforum.blast.hk/showthread.php?tid=182948


Re: Information: Timer [2Questions] - Psymetrix - 11.01.2012

Timers use CPU. If your calling a big function then it will use more CPU.