Time sync
#1

I found that code on my script (based GF) and i understood it belongs to time about GMT...

Код:
public FixHour(hour)
{
	hour = timeshift+hour;
	if (hour < 0)
	{
		hour = hour+24;
	}
	else if (hour > 23)
	{
		hour = hour-24;
	}
	shifthour = hour;
	return 1;
}
I have clock textdraw of hour,minutes,seconds for example: 17:46:32
So my problem is the time is on delay of 1 hour instead of advance 1 hour

the original is: 16:46:32
i want to change it to 17:46:32

Thanks
Reply
#2

You can hardcode it like
Quote:

hour = timeshift+hour+1;

Or track down timeshift variable and change it instead.
Reply
#3

Thanks +REP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)