SA-MP Forums Archive
Time of day won't change - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Time of day won't change (/showthread.php?tid=144127)



Time of day won't change - playbox12 - 25.04.2010

Guys I have kind of a weird problem it actually is simple,

When I do /tod it changes the time for 1 or 2 seconds and then it goes back to 12:00 (I not mean the display time but I mean the TOD dark, morning, etc etc)

I realy don't get what is wrong and that why I don't know what I need to paste here my hole script you might say but that is 48.000 lines

If someone has a suggestion, please help me out it kinda sucsk for a roleplay server if it always is dark.


Thanks,

Jeroen, Community Owner [Agressive Roleplay]


Re: Time of day won't change - Miguel - 25.04.2010

It must be a timer or something. Open your GM and look for "SetWorldTime".


Re: Time of day won't change - playbox12 - 25.04.2010

Quote:
Originally Posted by SAWC™
It must be a timer or something. Open your GM and look for "SetWorldTime".
if(ServerHour == 22){SetWorldTime(22);} //Can't be different. I don't know why, but otherwise you get a atomic bomb weather.
else{SetWorldTime(ServerHour);}

That comment if from another scripter that works on our GM he doesen't know it either as you can see


Re: Time of day won't change - playbox12 - 26.04.2010

Someone?


Re: Time of day won't change - Steven82 - 26.04.2010

Код:
Код:
Check for command
SetWorldTime
That is all that could possibly be doing it.