Playing Time
#4

What is the point of PInfo[playerid][hours]?
Just use (gettime() - PInfo[playerid][ConnectTime]) to calculate how much time passed since the player has last connected.

Save that value each time into your player's db/ini file (incrementing your current totalplaytime). Then do whatever calculations you want to display the hours, minutes and seconds. There's no point saving them in variables once you have a timestamp..
Reply


Messages In This Thread
Playing Time - by Rockyyy - 17.07.2016, 14:07
Re: Playing Time - by GuyB790 - 19.07.2016, 12:36
Re: Playing Time - by OneDay - 19.07.2016, 12:44
Re: Playing Time - by GuyB790 - 19.07.2016, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)