SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07/06/2016, 06:32 AM   #1
Join Date: Jun 2010
Posts: 1,649
Reputation: 53
Default Which is better Per Player Timer or Global timer? (issue with timer)

Several and randomly timers stop working in samp.

I use 1 global timer for all players using foreach however it seems that it suddenly stops working and won't run every minute.
It updates variables like
Jail time etc.

I've been having a lot of issues with timers including inaccuracies and I have to restart the server just to fix.

I have killed all timers ongamemodeexit

I don't think using per player timers is exactly efficient? I mean say I had 500 players online (not likely just saying) wouldn't that cause serious issue?

Dokins is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slice's Timer Fix include --> timer public function isn't getting called Riwerry Scripting Help 0 02/01/2016 04:50 PM
What's better: per-player timers or a global timer? Aerotactics Scripting Help 3 29/10/2015 07:51 AM
One "global" timer or "Per-player" timer? Kyance Scripting Help 8 15/11/2014 05:30 PM
A timer that loops through all players or a timer for each player? x-cutter Help Archive 2 28/05/2011 04:35 PM
Global Timer? UberSocks Help Archive 2 29/01/2010 12:13 PM

All times are GMT. The time now is 02:25 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.