Two string (time) compare and calculate how much time passed
#3

I don't think you could use that for this purpose,

You can save the player 'last time' as unix time ( gettime() ) under OnPlayerDisconnect. When they connect again, compare the saved time with the actual time (unix) and send that info to the player. You would want to make a function for this in order to make it look nicer (like not just seconds but to separate seconds, hours, days, etc)
Reply


Messages In This Thread
Two string (time) compare and calculate how much time passed - by thaKing - 10.03.2017, 09:01
Re: Two string (time) compare and calculate how much time passed - by thaKing - 10.03.2017, 09:14
Re: Two string (time) compare and calculate how much time passed - by Toroi - 10.03.2017, 09:14

Forum Jump:


Users browsing this thread: 1 Guest(s)