megaman54 Posted February 13, 2010 Share Posted February 13, 2010 How to make the server to get real time from host computer then add it on game and make the minutes last 60000 milliseconds? Help please Link to comment
Gamesnert Posted February 13, 2010 Share Posted February 13, 2010 It's not difficult, you just need to use 3 functions: - getRealTime - setTime - setMinuteDuration All these functions can be used both server-side and client-side. Link to comment
megaman54 Posted February 13, 2010 Author Share Posted February 13, 2010 I tried but how to use the getRealTime function? like: local hour, minute = getRealTime() setMinuteDuratiion(60000) setTime(hour, minute) Link to comment
DakiLLa Posted February 13, 2010 Share Posted February 13, 2010 local time = getRealTime() setMinuteDuration( 60000 ) setTime( time.hour, time.minute ) this should works, because getRealTime returns a table, containing hour, minutes, etc. Link to comment
megaman54 Posted February 13, 2010 Author Share Posted February 13, 2010 Thanks all! I got it working! Many thanks 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