[Tutorial] How to count online hours [Using Y_INI]
#4

GetTickCount?

Quote:

OnPlayerConnect - GetTickCount = tick_connect
OnPlayerDisconnect - GetTickCount = tick_disconnect

time_minutes = (tick_disconnect - tick_connect)/60*1000; //seconds
time_hours = time_minutes/60;
time_minutes = time_minutes%60;

At the command do a GetTickCount to get the current tick then do the same as above ^

Just avoided a timer?
Reply


Messages In This Thread
How to count online hours [Using Y_INI] - by Vanter - 18.02.2014, 12:07
Re: How to count online hours [Using Y_INI] - by Raza2013 - 18.02.2014, 12:11
Re: How to count online hours [Using Y_INI] - by Luis- - 18.02.2014, 12:45
Re: How to count online hours [Using Y_INI] - by Yashas - 18.02.2014, 14:57
Re: How to count online hours [Using Y_INI] - by Vanter - 18.02.2014, 19:53
Re: How to count online hours [Using Y_INI] - by Whitetiger - 19.02.2014, 00:32
Re: How to count online hours [Using Y_INI] - by GeekSiMo - 21.06.2014, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)