Timer running after logout
#6

Alright, I am willing to give one full(Hopefully) answer. The timer is set to repeat = true which makes the timer repeating untill killed. You are not saving the timer ID upon starting it , therefore the timer id is not possible to be discovered because once used a timer ID it won't be used again. The right way is to create this timer using a PVar or new SomeVar[MAX_PLAYERS] and you should start it like SomeVar[playerid] = SetTimerEx("func", _, _,.....); or with the PVar however I prefer using SomeVar[playerid] type. If you make it to check if the player id is online it wouldn't work again because every time a player disconnect and someone else take this ID he will have two timers working for him therefore taking every doubled or if he do it again tripled etc. etc. and he can get up to 100 timers and more just on his ID. That's why you should save the timer ID upon starting it and kill it once it is not needed.
Reply


Messages In This Thread
Timer running after logout - by TwinkiDaBoss - 30.12.2015, 01:35
Re: Timer running after logout - by SnG.Scot_MisCuDI - 30.12.2015, 01:47
Re: Timer running after logout - by TwinkiDaBoss - 30.12.2015, 01:50
Re: Timer running after logout - by Jefff - 30.12.2015, 02:00
Re: Timer running after logout - by Richie© - 30.12.2015, 02:02
Re: Timer running after logout - by thefirestate - 30.12.2015, 02:07
Re: Timer running after logout - by TwinkiDaBoss - 30.12.2015, 02:27
Re: Timer running after logout - by PrO.GameR - 30.12.2015, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)