Help with textdraw watch
#1

Hello I have textdraw watch, it works perfect, but my host is in another country and there time is different. I want to add +1 hour +3 minutes and +15 seconds to equalize the time, but when I added, there were many bugs (9:52:72 (hours, minutes, seconds)). And I think there will be more bugs at the date. Here is my system:
Quote:

new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Date, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Time, string);

Will you be able to add 1 hour, 3 minutes and 15 seconds to that time?
Reply


Messages In This Thread
Help with textdraw watch - by Kraeror - 21.07.2017, 12:01
Re: Help with textdraw watch - by Vince - 21.07.2017, 13:00
Re: Help with textdraw watch - by Kraeror - 21.07.2017, 13:02
Re: Help with textdraw watch - by Kraeror - 21.07.2017, 15:46
Re: Help with textdraw watch - by Vince - 21.07.2017, 15:49
Re: Help with textdraw watch - by Kraeror - 21.07.2017, 20:01

Forum Jump:


Users browsing this thread: 3 Guest(s)