24.08.2011, 08:53
Quote:
|
None of the previous posts will fix your problem. You need to hide and re-display the textdraw each time you set a new string to it, or it won't update on the player's screen. You should hide it, set the string, then show it again.
pawn Code:
|
pawn Code:
public GameTime()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GameSeconds > 0 || GameMinutes > 0)
{
GameSeconds--;
if(GameSeconds <= -1)
{
GameMinutes--;
GameSeconds=59;
}
new TimeString[14];
format(TimeString,sizeof(TimeString),"%02d:%02d",GameMinutes,GameSeconds);
TextDrawSetString(Textdraw0,TimeString);
TextDrawHideForAll( Textdraw0 );
TextDrawSetString( Textdraw0, TimeString );
TextDrawShowForAll( Textdraw0 );
}
if(GameSeconds == 0 && GameMinutes == 0)
{
OnGameModeExit();
}
}
return 1;
}


