05.02.2019, 12:13
(
Последний раз редактировалось Jaua10; 05.02.2019 в 13:19.
)
solved
forward settime();
public settime()
{
new hour,minute,second;
new string[256];
gettime(hour,minute,second);
if (minute <= 9){format(string,25,"%d:0%d:%d",hour,minute,second);}
else {format(string,25,"%d:%d:%d",hour,minute,second);}
TextDrawSetString(Clock,string);
SetWorldTime(hour);
return 1;
}
forward settime();
public settime()
{
new hour,minute,second,string[16];
gettime(hour,minute,second),
format(string,sizeof(string),"%d:%02d:%02d",hour,minute,second),
TextDrawSetString(Clock,string),
SetWorldTime(hour);
return 1;
}