Quote:
Originally Posted by Kindred
Do what he said ^.
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); } return 1; }
This is much faster and easier.
|
yeah, fast function and better.