SA-MP Forums Archive
Server GM time is automatically set to night. - 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)
+--- Thread: Server GM time is automatically set to night. (/showthread.php?tid=345991)



Server GM time is automatically set to night. - TheDominator - 26.05.2012

I've been messing around with my GM and decided to add a few things to a blank GM that I want to build on to eventually become a usable, playable and possibly a releasable script. The issue that I am encountering is that when the player joins the server his time is automatically set to 24:00 which is night time, but I want it to be set to day time, 12:00. The issue with this is that no matter what I try whether it be SetPlayerTime or SetWorldTime it would always reset to night time, if someone can help me with this issue then I'll give them reputation, thanks.


Re: Server GM time is automatically set to night. - MP2 - 27.05.2012

Firstly 24:00 is impossible - it's 0:00.
Secondly, search (Ctrl+F) for SetWorldTime and SetPlayerTime in your scripts.


Re: Server GM time is automatically set to night. - TheDominator - 27.05.2012

Well that's the problem you see, when I remove the SetWorldTime and SetPlayerTime I added to the script, then try searching for any others there isn't any but it still sets my time to night.


Re: Server GM time is automatically set to night. - nickdodd25 - 27.05.2012

Do you have any filterscripts going? I have had that problem before couldnt figure it out and forgot my filterscript was setting time and weather on me. Talk about brain fart. lol


Re: Server GM time is automatically set to night. - TheDominator - 27.05.2012

I removed all FS's and still nothing, I have no idea what could be causing this :/ Also, when I check the 0.3e SA-MP client to see the world time it says it's 01:00 but yet I set the world time to 12:00.


Re: Server GM time is automatically set to night. - MP2 - 27.05.2012

Check includes.


Re: Server GM time is automatically set to night. - TheDominator - 27.05.2012

These are the only includes I have:
pawn Код:
#include <a_samp>
#include <YSI\y_ini>



Re: Server GM time is automatically set to night. - MP2 - 27.05.2012

Then you ARE using either SetPlayerTime or SetWorldTime in your script. The time doesn't just get set randomly.


Re: Server GM time is automatically set to night. - TheDominator - 27.05.2012

Problem solved, removed the FS gl_realtime, I can't understand why it only started to use my default time now and not before. Sorry for wasting your time, it's 2:04AM here and in need of sleep, +reputation for both of you for wasting your time.


Re: Server GM time is automatically set to night. - MP2 - 27.05.2012

Don't worry about it. Glad to help.