SA-MP Forums Archive
Problem with KillTImer - 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)
+--- Thread: Problem with KillTImer (/showthread.php?tid=658546)



Problem with KillTImer - kadar - 06.09.2018

Hi!

I'm using a timer when the player logs in the game, but unfortunately I can't kill it and it keeps repeating and repeating like an infinity loop. Fun fact, the timer's loop is set to false :'D

This is the code:

Код:
SpawningTimer[playerid] = SetTimerEx("LogCharIn", 1000*60, false, "i", playerid);
I tried to use KillTimer(SpawningTimer[playerid]); and I also tried to use set the value of SpawninTimer[playerid] to 0.

I have no further ideas what i can do about it to make it work.
Please help me :/ )


Re: Problem with KillTImer - v1k1nG - 06.09.2018

Maybe you keep executing that line of code.


Re: Problem with KillTImer - kadar - 06.09.2018

Nop, it is called only once by a tquery.


Re: Problem with KillTImer - kadar - 07.09.2018

anyone, ideas? :/


Re: Problem with KillTImer - iLearner - 07.09.2018

your timer could be inside a loop. show us the whole code near the timer.


Re: Problem with KillTImer - kadar - 07.09.2018

Quote:
Originally Posted by kadar
Посмотреть сообщение
Nop, it is called only once by a tquery.
As I said before, i'm using it once. Specifically at login, this query checks if there is a match with the given name and password.

+ And everything else is working inside this tquery, every single one, except this timer.


Re: Problem with KillTImer - UFF - 08.09.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
show us the whole code near the timer.
^ this


Re: Problem with KillTImer - sonn51280 - 08.09.2018

onplayerconnect ?