Server Time Tracking Issue
#6

Quote:
Originally Posted by BR3TT
Посмотреть сообщение
So once I actually get that time, how should I store it for when they go offline, just store it into the mysql table and when they reconnect retrieve that time and continue from that?
Yeah, basically you'd be adding newHrs, newMins, newSecs to whatever is saved in the database for a player every time they disconnect from your server. You may want to check Yashas' method too, it's efficient, but it'd need some math calculations to get the time in Hours/Minutes/Seconds format because GetConnectedTime gives you time in milliseconds only. I prefer my method though, it looks easier, neater and it's CPU-friendly as well.
Reply


Messages In This Thread
Server Time Tracking Issue - by BR3TT - 14.06.2015, 00:23
Re: Server Time Tracking Issue - by J0sh... - 14.06.2015, 00:31
Re: Server Time Tracking Issue - by [KHK]Khalid - 14.06.2015, 02:45
Re: Server Time Tracking Issue - by Yashas - 14.06.2015, 04:18
Re: Server Time Tracking Issue - by BR3TT - 14.06.2015, 07:15
Re: Server Time Tracking Issue - by [KHK]Khalid - 14.06.2015, 14:00
Re: Server Time Tracking Issue - by Yashas - 14.06.2015, 15:51

Forum Jump:


Users browsing this thread: 3 Guest(s)