Stop a countdown!!
#9

Hi,
thank u it works now, but the second time the timer is started it continues to count down from e.g 23 sec if it has been aborted (killed at the time the timer was on 23 sec). But i want it to start from 60 secs again and not from the last aborted time.

I looked at it for 10 mins and simply dont get it

pawn Код:
public counter(playerid)
{

if(countdown > 1)
{
CDONSTimer = SetTimer("counter",990,0);
new string[128];
format(string,sizeof(string),"~l~! ~r~Detonating: ~y~%d ~l~!",countdown);
GameTextForAll(string,990,5);

countdown --;
}
else
{

countdown = 0;
}
return 1;
}


forward counter(playerid);
new countdown = 60;
new CDONSTimer;

CDONSTimer = SetTimer("counter",990,0);
KillTimer(CDONSTimer);
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: 5 Guest(s)