Textdraw 15:00 Minutes Timer Problem..
#1

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"10000);
}
return 
1;

Code When i Do StartGame.. That What Happens.

PHP код:
forward CountDown();
public 
CountDown()
{
if(
CD_SECONDS 0)
{
format(strsizeof(str), "The Game Start In : ~r~ %d"CD_SECONDS--);
GameTextForAll(str10003);
}
else
{
GameTextForAll("~b~GO ! ~r~GOOD LUCK"10003);
for(new 
iMAX_PLAYERSi++) if(IsPlayerConnected(i)) TogglePlayerControllable(i,1);
for(new 
iMAX_PLAYERSi++)
if(
GameStart == 1)
{
SetTimer("CountDownTD",1000,1);
}
KillTimer(CD_TIMER);
}

So.. What To Do ..?
Reply
#2

Some1
Reply
#3

oh dear,
Reply
#4

Some1?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)