SOLVED
#1

SOLVED>.... Delete
Reply
#2

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.
Reply
#3

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.
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)