31.01.2016, 10:06
Код:
public settime(playerid)
{
new string[256],year,month,day,hours,minutes;
getdate(year, month, day), gettime(hours, minutes);
format(string, sizeof string, "%s%d.%s%d.%d", (year < 10) ? ("0") : (""), year, ((month < 10) ? ("0") : ("")), month, day);
TextDrawSetString(DateB, string);
format(string, sizeof string, "%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes);
TextDrawSetString(TimeB, string);
}

