[Ajuda] Timer parando de funcionar
#1

Boa noite , seguindo galera eu tenho um timer no ongamemodeinit do relogio e de players on.
Sу que ele funciona de boa , sу que depois de um certo tempo ele para de funcionar e nгo atualiza nem o relogio e nem o players on mais , nгo sei o que pode ser...

Ongamemodeinit :
Код:
 SetTimer("Relogio", 1000, true);
Public :
Код:
forward Relogio();
public Relogio()
{
AntiDeAMX();
new
string[50],
year,
month,
day,
hour,
minute,
second;
getdate(year, month, day);
gettime(hour, minute, second);
format(string, sizeof string, "%d/%s%d/2015", day, ((month < 10) ? ("0") : ("")), month);
TextDrawSetString(Textdraw10, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hour < 10) ? ("0") : (""), hour, (minute < 10) ? ("0") : (""), minute, (second < 10) ? ("0") : (""), second);
TextDrawSetString(Textdraw9, string);
format(string, sizeof string, "~g~Players On:~w~ %d/%d", GetPlayersConnected(), GetMaxPlayers());
TextDrawSetString(Textdraw8, string);
}
Ele sу volta a funcionar se relogar , eu sei que tem casos que trava mesmo quando net tб ruim etc... , mas trava de todos online , nгo й o host pois jб testei em 2 diferentes ...
Reply


Messages In This Thread
Timer parando de funcionar - by Thider - 03.03.2015, 00:33
Re: Timer parando de funcionar - by ZeZin - 03.03.2015, 01:01
Re: Timer parando de funcionar - by Thider - 03.03.2015, 01:25
Re: Timer parando de funcionar - by ipsLuan - 03.03.2015, 01:36
Re: Timer parando de funcionar - by Thider - 03.03.2015, 14:57
Re: Timer parando de funcionar - by FStralioti - 03.03.2015, 15:07
Re: Timer parando de funcionar - by PT - 03.03.2015, 15:21
Re: Timer parando de funcionar - by Thider - 03.03.2015, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)