30.11.2010, 12:51
hi,
no matter what i try
just cant stop this timer
I hope u can help me
Also the countdown starts only the first time, the second time it is started it just doesnt appear on the screen.
Why?
I did the KillTimer command there where i want it to be stopped but the counting goes on!!
no matter what i try
just cant stop this timer

I hope u can help me
Also the countdown starts only the first time, the second time it is started it just doesnt appear on the screen.
Why?
I did the KillTimer command there where i want it to be stopped but the counting goes on!!
pawn Код:
public counter(playerid)
{
if(countdown > 1)
{
new string[128];
format(string,sizeof(string),"~l~! ~r~Detonating: ~y~%d ~l~!",countdown);
GameTextForAll(string,990,5);
SetTimer("counter",990,0);
countdown --;
}
else
{
countdown = 0;
}
return 1;
}
CDONSTimer = SetTimer("counter",990,0); //i defined the timer and later i kill it with...
KillTimer(CDONSTimer); //this so whats wrong???