Stop a countdown!!
#1

hi,
ive created a countdown that appears on screen for all players:

pawn Код:
forward counter(playerid);
new countdown = 60;
new CDONSTimer;

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;
}
It counts backwards from 60 sec but how can i stop the text countdown on screen from continuing counting?
I did :

KillTimer(CDONSTimer);

But the countdown still continues!!

Pls help.

regards.
Reply


Messages In This Thread
Stop a countdown!! - by BlackWolf120 - 29.11.2010, 16:26
Re: Stop a countdown!! - by [MNC]Azz - 29.11.2010, 16:32
Re: Stop a countdown!! - by BlackWolf120 - 29.11.2010, 16:39
Re: Stop a countdown!! - by [MNC]Azz - 29.11.2010, 17:12
Re: Stop a countdown!! - by BlackWolf120 - 30.11.2010, 12:51
Re: Stop a countdown!! - by [MNC]Azz - 30.11.2010, 16:15
Re: Stop a countdown!! - by Mean - 02.12.2010, 12:19
Re: Stop a countdown!! - by BlackWolf120 - 02.12.2010, 14:10
Re: Stop a countdown!! - by BlackWolf120 - 03.12.2010, 11:53
Re: Stop a countdown!! - by BlackWolf120 - 03.12.2010, 13:48
Re: Stop a countdown!! - by BlackWolf120 - 04.12.2010, 16:34
Re: Stop a countdown!! - by BlackWolf120 - 04.12.2010, 20:38
Re: Stop a countdown!! - by PowerPC603 - 04.12.2010, 23:59
Re: Stop a countdown!! - by BlackWolf120 - 05.12.2010, 00:59

Forum Jump:


Users browsing this thread: 1 Guest(s)