17.08.2012, 21:35
Do what he said ^.
And this is absolutely the WORST method of making a countdown in the world.
This is recommended:
This is much faster and easier.
And this is absolutely the WORST method of making a countdown in the world.
This is recommended:
pawn Код:
SetTimer("five", 1000, 0);
SetTimer("four", 2000, 0);
SetTimer("three", 3000, 0);
SetTimer("two", 4000, 0);
SetTimer("one", 5000, 0);
SetTimer("start", 7000, 0);
// Into...
new countdown == 5;
SetTimerEx("countdowntimer", 1000, true, "i", countdown);
forward countdowntimer(count);
public countdowntimer(count)
{
countdown --;
if(countdown == 0)
{
//If timer is 0, write "start" here
KillTimer(countdowntimer);
countdown == 5; //So if we re-do the SetTimerEx, we do not need to reset the variable.
}
return 1;
}