10.07.2010, 15:54
Hi guys.
Listen I'm having a little problem with my countdown script.
Well this is the code:
Well the problem is that when the countdown is up,it still shows 0 while it supposed to show "Go!".
It's not catastrophic,but I'd still like it to be fixed.
Thank you in advance.
Listen I'm having a little problem with my countdown script.
Well this is the code:
pawn Code:
forward CountdownTimer();
public CountdownTimer()
{
Seconds--;
if(Seconds == 0)
{
GameTextForAll("~R~Go!",1200,5);
KillTimer(Timer);
CountdownRunning = 0;
}
new Update[24];
format(Update, 24, "~r~%d", Seconds);
GameTextForAll(Update,1000,5);
return 1;
//There's a whole more bunch of code,but I'm sure that that's where the failure is.
}
It's not catastrophic,but I'd still like it to be fixed.
Thank you in advance.