SA-MP Forums Archive
Seconds Timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Seconds Timer (/showthread.php?tid=470056)



Seconds Timer - AnonScripter - 16.10.2013

why this second timer doesn't work, it keeps the (%i) 20 in the game and doesn't decrease

pawn Код:
CMD:robstore(playerid, params[])
{
    Seconds[playerid] = 20;
    SetTimerEx("RobberySeconds", 1000, false, "i", playerid);
    format(string, sizeof(string), "~w~Robbery Completed in %i Seconds", Seconds[playerid]);
}

public RobberySeconds(playerid)
{
    if(Seconds[playerid] >= 1)
    {
        Seconds[playerid] --;
    }
    return 1;
}



Re: Seconds Timer - DarkLored - 16.10.2013

Here is my tutorial everything is explaind there with the cmd and the timer
https://sampforum.blast.hk/showthread.php?tid=470049


Re: Seconds Timer - AnonScripter - 16.10.2013

can't it work with string ?