Timer / Textdraw bug
#8

Sorry, I forgot to mention that the function's name and variable name would conflict with each other and it has to be a global variable so having "new Jail[MAX_PLAYERS];" then "Jail[targetid] = SetTimerEx(..." would work. Also make sure you kill the timer with that ID. Another thing, go to your OnPlayerDisconnect and put this:
pawn Код:
if(jailed[playerid] == 1)KillTimer(Jail[playerid]);
So if the player disconnects while in jail, it would automatically kill the timer.
Reply


Messages In This Thread
Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:23
Re: Timer / Textdraw bug - by Tee - 04.07.2012, 05:31
Re: Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:37
Re: Timer / Textdraw bug - by MP2 - 04.07.2012, 05:40
Re: Timer / Textdraw bug - by Tee - 04.07.2012, 05:42
Re: Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:44
Re: Timer / Textdraw bug - by [KHK]Khalid - 04.07.2012, 05:46
Re: Timer / Textdraw bug - by Tee - 04.07.2012, 05:48
Re: Timer / Textdraw bug - by SnG.Scot_MisCuDI - 04.07.2012, 05:49
Re: Timer / Textdraw bug - by [KHK]Khalid - 04.07.2012, 05:52

Forum Jump:


Users browsing this thread: 1 Guest(s)