11.05.2010, 18:12
It is giving this error:
Код:
syntax error in the expression, or invalid function call
pawn Код:
public Timer()
{
gTimePassed++;
new timeleft = ROUND_TIME * 60 - gTimePassed; //This is the error line :S
new minutes = timeleft / 60;
new seconds = timeleft - minutes * 60;
new tmpmsg[128];
format(tmpmsg,sizeof(tmpmsg),"%d:%d",minutes, seconds);
TextDrawSetString(TimerCD, tmpmsg);
TextDrawShowForAll(TimerCD);
}