02.05.2010, 14:22
Mi code de hora:
quiero que la hora del textdraw sea 2 horas menos que la del servidor, pense en aсadir esto pero no funciono:
new hour,minute,second;
new string[256];
gettime(hour,minute,second);
if (minute <= 9){format(string,25,"%-2d:0%d",hour,minute);}
else {format(string,25,"%-2d:%d",hour,minute);}
TextDrawSetString(Clock,string)
Algun consejo
Код:
new hour,minute,second; new string[256]; gettime(hour,minute,second); if (minute <= 9){format(string,25,"%d:0%d",hour,minute);} else {format(string,25,"%d:%d",hour,minute);} TextDrawSetString(Clock,string);
new hour,minute,second;
new string[256];
gettime(hour,minute,second);
if (minute <= 9){format(string,25,"%-2d:0%d",hour,minute);}
else {format(string,25,"%-2d:%d",hour,minute);}
TextDrawSetString(Clock,string)
Algun consejo