20.12.2012, 17:26
(
Последний раз редактировалось sampmann; 20.12.2012 в 18:11.
)
How can i add +5 hours on this clock?
pawn Код:
public clock(){
SyncTime();
new
string[256],
year,
month,
day,
hours,
minutes,
seconds;
getdate(year, month, day);gettime(hours, minutes, seconds);
format(string, sizeof string, "~b~~h~~h~~h~%d/%s%d/2012", day, ((month < 10) ? ("0") : ("")) ,month);TextDrawSetString(clock1, string);
format(string, sizeof string, "~b~~h~~h~~h~%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);TextDrawSetString(clock2, string);
TextDrawShowForAll(clock1);TextDrawShowForAll(clock2);}