30.12.2014, 12:14
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 .
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 .