I've been doing it like this:
Dunno if it's the best way but I hope that I gave you a good idea how :3
Code:
timer Countdown[1000](playerid, seconds)
{
if (seconds) {
defer Countdown(playerid, --seconds);
// Update GameText, be aware that seconds is already subtracted by 1
}
else {
// Timer finished, code;
}
}
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.