Problem with KillTImer
#1

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 :/ )
Reply
#2

Maybe you keep executing that line of code.
Reply
#3

Nop, it is called only once by a tquery.
Reply
#4

anyone, ideas? :/
Reply
#5

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

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.
Reply
#7

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

onplayerconnect ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)