Need help with an equasion. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with an equasion. (
/showthread.php?tid=379520)
Need help with an equasion. -
Penki4a - 22.09.2012
Hello,basically what i need is an equasion that divides the total playing time of a player and gets the averege daily time out of it.I tried to make it but let's say math is not my power xD.Can anyone give me a hand?
Re: Need help with an equasion. -
[HK]Ryder[AN] - 22.09.2012
Use this equation
pOnlineTime / pDaysPlayed
example online time = 4, days = 4
4 / 4
= 1
he played 1 hr daily(on average)
Re: Need help with an equasion. -
Penki4a - 22.09.2012
Quote:
Originally Posted by [HK]Ryder[AN]
Use this equation
pOnlineTime / pDaysPlayed
example online time = 4, days = 4
4 / 4
= 1
he played 1 hr daily(on average)
|
Yes that's what i was thinking,i just need to make a variable that saves the Player Days.
Re: Need help with an equasion. -
YourLord - 22.09.2012
it must count the played days/hours, then divide both to get the average.
use some method to store, if you got any problems with it, post ur code.
Re: Need help with an equasion. -
Penki4a - 22.09.2012
No problem i used dini to save the hours and the days and i used gettime to get the exact info.