Online time
#1

Hello i want to do function like how long u have player on the server , so i make a 1min timer and put him inside onplayerspawn callback , and now i need advice how to do is better count time , i was thinking about minute varable witch will be increased each minute by 1 so it will store a minutes and then after it reach 60 set hour variable to 1 and reset minute variable , but then i think how i need to put that into my database for this i need two different fields , so now i thinking store only minutes and playerconnect load those minutes and then make them in hours and minutes
like if i have 1000minutes / 60 so its 16,66666 so what i want from u is to give my formula or sample how i can turn those minutes into hours and minutes , or give my another alternative way to do what i want to do tnx .
Reply


Messages In This Thread
Online time - by cyberlord - 30.12.2014, 12:14
Re: Online time - by TonyII - 30.12.2014, 12:18
Re: Online time - by cyberlord - 30.12.2014, 12:21
Re: Online time - by TonyII - 30.12.2014, 12:23
AW: Re: Online time - by Flori - 30.12.2014, 12:43
Re: Online time - by Facerafter - 30.12.2014, 12:46
Re: Online time - by cyberlord - 30.12.2014, 12:48
Re: Online time - by Facerafter - 30.12.2014, 12:51
Re: Online time - by cyberlord - 30.12.2014, 16:15
AW: Online time - by Nero_3D - 30.12.2014, 16:46
Re: AW: Online time - by cyberlord - 30.12.2014, 17:37
Re: AW: Online time - by Cameltoe - 30.12.2014, 17:53
Re: AW: Online time - by cyberlord - 30.12.2014, 18:08
Re: Online time - by cyberlord - 30.12.2014, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)