/countdown bug
#9

I am very suprised no one thought about this:

pawn Код:
new Count=5;
new Countertimer;

-----
Command: /countdown:
SendClientMessage(playerid, COLOR, "You started the count down!");
Countertimer = SetTimer("Countdown", 1000, 1);
GameTextForAll("5 Seconds", 1000, 4);

-----

forward Countdown();
public Countdown()
{
Count--;
new string[128];
format(string, sizeof(string), "%d Seconds", Count);
GameTextForAll(string, 1000, 4);

if(Count == 0)
{
GameTextForAll("GO GO GO", 2000, 4);
KillTimer(CounterTimer);
Count=5;
}
Reply


Messages In This Thread
/countdown bug - by shoru93 - 29.11.2009, 19:55
Re: /countdown bug - by LarzI - 29.11.2009, 20:41
Re: /countdown bug - by shoru93 - 29.11.2009, 21:13
Re: /countdown bug - by LarzI - 29.11.2009, 21:22
Re: /countdown bug - by Outbreak - 29.11.2009, 21:29
Re: /countdown bug - by diesulke - 29.11.2009, 21:43
Re: /countdown bug - by LarzI - 29.11.2009, 21:51
Re: /countdown bug - by shoru93 - 29.11.2009, 21:55
Re: /countdown bug - by lolumadd - 29.11.2009, 22:00
Re: /countdown bug - by Outbreak - 29.11.2009, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)