Posts: 158
Threads: 5
Joined: Oct 2008
Reputation:
0
generally you have to add 1 hour after gettime
what gamemode is this for?
Posts: 111
Threads: 27
Joined: Sep 2008
Reputation:
0
Use the GodFather
What can I change?
Posts: 606
Threads: 3
Joined: Apr 2008
Reputation:
0
What I am using for example:
if (hour == 0)
{
SetWorldTime(1);
}
if (hour == 1)
{
SetWorldTime(2);
}
etc.
Posts: 354
Threads: 16
Joined: May 2008
Reputation:
0
new hour = Gettime or whatever its called;
SetWorldTime(hour+1);
Posts: 158
Threads: 5
Joined: Oct 2008
Reputation:
0
my approach was similar to Badger's - I too simply added +1, only here:
public FixHour(hour)
{
hour = timeshift+hour+1;
if (hour < 0)
{
hour = hour+24;
}
else if (hour > 23)
{
hour = hour-24;
}
shifthour = hour;
return 1;
}