Posts: 242
Threads: 70
Joined: Aug 2015
Reputation:
0
Settimer and SettimerEx, if used often will it lead somehow to a server crash? is it the same like having too much scripts on callback "onplayerupdate" ?, because i'am currently working on a auto-save system that saves your stats to mysql without losing it on a server restart or crash.
Posts: 547
Threads: 57
Joined: Dec 2010
If you're worried about people losing their stats due to a crash or restart, save a player's stats when they actually change rather than making a timer to have it save every 5 minutes.
Posts: 6,242
Threads: 8
Joined: Jun 2008
If the timer is used badly, and structured so it makes the script stall, then it will cause problems.
Doesn't matter how often you fire the timer, it's about its efficiency.
Posts: 242
Threads: 70
Joined: Aug 2015
Reputation:
0
Thanks, i've got a clear point now