2 Countdown Timers in one script
#1

Are you able to put 2 countdown timers in one script cause mine is sure not letting me. If so could i get an example :

Код:
new time = 61;
new timer1;

forward timer();
public timer()
{
    new string[128];
    if(time > 0)
    {
        time--;
        format(string, sizeof(string), "~r~%d", time - 0);
    }
    else
    {
        new playerid;
        time = 61;
        format(string, sizeof(string), "~r~GAME OVER");
        KillTimer(timer1);
        SetPlayerHealth(playerid, 0);
    }
    GameTextForAll(string, 1000, 4);
    return 1;
}
How could i make another the same, but make it as a second timer that happens Via command
Reply


Messages In This Thread
2 Countdown Timers in one script - by ShawtyyMacJunior - 28.07.2012, 11:57
Re: 2 Countdown Timers in one script - by Kindred - 28.07.2012, 12:11
AW: 2 Countdown Timers in one script - by Nero_3D - 28.07.2012, 13:43

Forum Jump:


Users browsing this thread: 1 Guest(s)