19.02.2010, 12:02
This code seems to be crashing / lagging the server this only started when i added the colours in.
pawn Код:
public systemclock()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new string[156];
format(string, sizeof(string), "~r~Time Left: ~w~%d:%d", RestartMinn,RestartSecc);
TextDrawSetString(txtTypeClock, string);
if(RestartSecc == 9 || RestartSecc == 8 || RestartSecc == 7 || RestartSecc == 6 || RestartSecc == 5 || RestartSecc == 4 || RestartSecc == 3 || RestartSecc == 2 || RestartSecc == 2 || RestartSecc == 1 || RestartSecc == 0)
{
format(string, sizeof(string), "~r~Time Left: ~w~%d:0%d", RestartMinn,RestartSecc);
TextDrawSetString(txtTypeClock, string);
}
}
}