SA-MP Forums Archive
About timers.. - 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: About timers.. (/showthread.php?tid=612883)



About timers.. - NeMoK - 22.07.2016

I want to ask you if it is better to use global timers (SetTimer) or parallel async player timers (SetTimerEx) to check, store, edit variables, position, vehicles etc..


Re: About timers.. - K0P - 22.07.2016

SetTimer
It is used when there is no special syntax to execute that public function forexample "OnDerbyStart()"

SetTimerEx
It is not called player timers,it is used to execute public functions that have some special syntax,it is mostly used for player public functions like "KickPlayer(playerid)" thats why most of newbies think its a timer thats only used for player public function which destroys their understanding,i recommend you to learn from wiki before experimenting with functions.