Seconds Timer
#1

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;
}
Reply
#2

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

can't it work with string ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)