Textdraw 15:00 Minutes Timer Problem.. - 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: Textdraw 15:00 Minutes Timer Problem.. (
/showthread.php?tid=411070)
Textdraw 15:00 Minutes Timer Problem.. -
kesem140599 - 27.01.2013
Hey, i have a code's and.. i think they really good.?
but when i do /StartGame
The Timer Is Get Furious .. Thats Changing To 9000, -17:55... like that.
code's :
PHP код:
new GameSeconds = 59;
new GameMinutes = 14;
PHP код:
forward CountDownTD();
public CountDownTD()
{
GameSeconds--;
new TimeString[14];
format(TimeString,sizeof(TimeString),"%d:%d",GameMinutes,GameSeconds);
TextDrawSetString(Textdraw0,TimeString);
if(GameSeconds == -1)
{
GameMinutes--;
GameSeconds = 59;
format(TimeString,sizeof(TimeString),"%d:%d",GameMinutes,GameSeconds);
TextDrawSetString(Textdraw0,TimeString);
}
if(GameMinutes == 0)
{
GameSeconds = 0;
SetTimer("GameTime", 1000, 0);
}
return 1;
}
Code When i Do StartGame.. That What Happens.
PHP код:
forward CountDown();
public CountDown()
{
if(CD_SECONDS > 0)
{
format(str, sizeof(str), "The Game Start In : ~r~ %d", CD_SECONDS--);
GameTextForAll(str, 1000, 3);
}
else
{
GameTextForAll("~b~GO ! ~r~GOOD LUCK", 1000, 3);
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) TogglePlayerControllable(i,1);
for(new i; i < MAX_PLAYERS; i++)
if(GameStart == 1)
{
SetTimer("CountDownTD",1000,1);
}
KillTimer(CD_TIMER);
}
}
So.. What To Do ..?
Re: Textdraw 15:00 Minutes Timer Problem.. -
kesem140599 - 27.01.2013
Some1
Re: Textdraw 15:00 Minutes Timer Problem.. -
u3ber - 27.01.2013
oh dear,
Re: Textdraw 15:00 Minutes Timer Problem.. -
kesem140599 - 28.01.2013
Some1?