SA-MP Forums Archive
SOLVED - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SOLVED (/showthread.php?tid=123038)



SOLVED - deather - 24.01.2010

SOLVED>.... Delete


Re: Timer help - mansonh - 24.01.2010

One, you have your timer set for 1/10 of a second not 1 second.
To see if its working add print(string); and see what the server command line shows, then you will know if its the textdraw or the timer thats bugged.


Re: Timer help - MadeMan - 24.01.2010

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/countdown", cmdtext, true) == 0)
    {
        SetTimer("Countdowntimer", 1000, true);
        return 1;
    }
    return 0;
}
You didn't have the right function name.


Re: Timer help - deather - 24.01.2010

Thank you. It worked but it countdowns in seconds. But how to make it as minuteecond?


Re: Timer help - MadeMan - 24.01.2010

pawn Код:
format(string, sizeof(string), "%02d:%02d", Countdown / 60, Countdown % 60);