Player timers and Player timers with variable
#4

Quote:
Originally Posted by Kwarde
View Post
Always check SA-MP Wiki: SetTimer(Ex) returns the ID of the timer. On the same page you could have seen there's a KillTimer function.
Not killing timers will indeed mess things up if they are repeatable timers: At some point one player would have multiple timers running, making the script run more often.
Your examples are timers that don't repeat. So not assigning the timer ID to a player to kill it later won't hurt it that quick because the timer runs once (assuming it's not set again in the public function it calls)
what if the timer is set to 1 min and player leave after like 20 seconds?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)