gametext help - 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: gametext help (
/showthread.php?tid=295166)
gametext help -
manchestera - 05.11.2011
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;
}
Re: gametext help -
sleepysnowflake - 05.11.2011
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;
}
Re: gametext help -
manchestera - 05.11.2011
Thanks alot man.
reped