A timer that loops through all players or a timer for each player? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A timer that loops through all players or a timer for each player? (
/showthread.php?tid=257970)
A timer that loops through all players or a timer for each player? -
x-cutter - 28.05.2011
Hi
I need to know which method is the more efficient. Having a single timer that loops through all online players (using foreach) every second or a different timer for each player?
Thanks for answering
Re: A timer that loops through all players or a timer for each player? -
Steve M. - 28.05.2011
A global timer that loops through all online players.
Re: A timer that loops through all players or a timer for each player? -
x-cutter - 28.05.2011
I hope you're right

thanks