Wes Posted March 14, 2013 Share Posted March 14, 2013 Hey. I have a script, which is supposed to set the server time to real time. So e.g if it's 22:00 in the real life (according to the server computer's time settings) then it supposed to set the ingame time to 21:00, to have the nighttime.. Unfortunatelly, it doesn't do that. I've added it to Admin ACL, but that doesn't work aswell... Any solution for this? I'm sorry that I'm opening so much topic, but this is the only place where the people are willing to help in these stuff. So here is the XML: "Benxamix2" version="1.5" type="script" name="New Real Time Script" /> "*initialHour" value="19" friendlyname="Initial Hour" accept="0-23" desc="The hour that the game inits with when starting this resource." /> "*initialMinute" value="30" friendlyname="Initial Minute" accept="0-60" desc="The minute that the game inits with when starting this resource." /> "*minuteDelay" value="60000" friendlyname="Minute Delay" accept="0-9999000" desc="How much time does minutes delay its advance in miliseconds." /> local minuteDelay = get ("realtime.minuteDelay") setMinuteDuration (minuteDelay) local hour = get ("realtime.initialHour") local minute = get ("realtime.initialMinute") setTime (hour,minute) Thanks for your support anyway, I hope there are some genius out there who has some spare time and willing to help the noob people Link to comment
50p Posted March 14, 2013 Share Posted March 14, 2013 Make sure you run the resource. Also, make sure you're not getting any error/warning messages in debug window. Link to comment
Wes Posted March 16, 2013 Author Share Posted March 16, 2013 Nah, it doesn't work at all. Can anybody help me with this? The thing is that I want to add +1 hour after every 3600000 miliseconds... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now