gametext help
#1

Hello al im having aproblem with my timer with gametext, i want it to count down from 60 to 0 but all that is happening is that 1 just flash on the screen it isnt going 60, 59, 58 andso on.

Код:
forward TimedCountdown(playerid);
public TimedCountdown(playerid) {
    if(iTimedCountdown == -1) {
        iTimedCountdown = 61;
    }

    new
        szMessage[10];

    iTimedCountdown--;
    format(szMessage, sizeof(szMessage), "~r~%d"); // Add more in if you wish.

    GameTextForAll(szMessage, 950, 3);

    if(iTimedCountdown == 0) {
        KillTimer(rCountdownHandle);
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Reply
#2

pawn Код:
forward TimedCountdown(playerid);
public TimedCountdown(playerid) {
    if(iTimedCountdown == -1) {
        iTimedCountdown = 61;
    }

    new
        szMessage[10];

    iTimedCountdown--;
    format(szMessage, sizeof(szMessage), "~r~%d",iTimedCountdown); // Add more in if you wish.

    GameTextForAll(szMessage, 950, 3);

    if(iTimedCountdown == 0) {
        KillTimer(rCountdownHandle);
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Reply
#3

Thanks alot man.
reped
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)