SA-MP Forums Archive
weird: Timer sometimes doesnt work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: weird: Timer sometimes doesnt work (/showthread.php?tid=94221)



weird: Timer sometimes doesnt work - hipy - 28.08.2009

Hello, in my sumo mode when sombody falls of the ring i do
Код:
timer2 = SetTimerEx("car", 20000, false, "i", playerid);
Function car just is spawnplayer and killtimer timer2 and setplayer color

But sometimes you end up seeing the gamemodetext of 20sec disapear with you will respawn in 20seconds but you do not respawn( you have to kill your self to try again ) does sombody know a solution of this"?


Re: weird: Timer sometimes doesnt work - ded - 28.08.2009

Quote:
Originally Posted by hipy
Hello, in my sumo mode when sombody falls of the ring i do
Код:
timer2 = SetTimerEx("car", 20000, false, "i", playerid);
Function car just is spawnplayer and killtimer timer2 and setplayer color

But sometimes you end up seeing the gamemodetext of 20sec disapear with you will respawn in 20seconds but you do not respawn( you have to kill your self to try again ) does sombody know a solution of this"?
Show more code, what is in the "car" function?


Re: weird: Timer sometimes doesnt work - hipy - 28.08.2009

Quote:

Function car just is spawnplayer and killtimer timer2 and setplayer color

There is nothing more in it than that :S Its very bizar


Re: weird: Timer sometimes doesnt work - ded - 28.08.2009

Quote:
Originally Posted by hipy
Quote:

Function car just is spawnplayer and killtimer timer2 and setplayer color

There is nothing more in it than that :S Its very bizar
Lol strange. I would have to see the whole code to even begin to solve it.


Re: weird: Timer sometimes doesnt work - hipy - 28.08.2009

Wich i cant post since the mode is not public. Its just timer2 = settimerex bla bla bla


Re: weird: Timer sometimes doesnt work - hipy - 28.08.2009

should i insteadf of playerid ( i use this function at some forwards with (playerid) and normal functions like onplayerexitvehicle )
Should i insteasd of do playerid in the timer do a loop?


Re: weird: Timer sometimes doesnt work - ded - 28.08.2009

If you see the Gamemodetext for the "You will respawn in 20 seconds" thing ... the timer is working ... that is under the timers function, right?


Re: weird: Timer sometimes doesnt work - hipy - 28.08.2009

no, Thats outside it. Its very weird the text disapears but you dont respawn . ITs completly random when you get stuck with spawning:S


Re: weird: Timer sometimes doesnt work - ded - 28.08.2009

Lol o__O .. maybe you have a return missing somewhere? Sometimes that can do weird things ...


Re: weird: Timer sometimes doesnt work - hipy - 28.08.2009

nope no returns missing