killsчdeaths Ratio problem
#1

I want to get the value Ratio=Kills/Deaths. I succesfully save and load kills and deaths with dini. But when a player has for example 5 deaths and 6 kills, Ratio becomes 1. If kills<deaths, then Ratio=0. How can I make ratio=5/6=0.83?
I also have R as Float like this:
pawn Код:
new Float:R;
Reply


Messages In This Thread
killsчdeaths Ratio problem - by HurtLocker - 01.04.2013, 16:48
Re: killsчdeaths Ratio problem - by Vince - 01.04.2013, 17:28
Re: killsчdeaths Ratio problem - by HurtLocker - 01.04.2013, 17:44
Re: killsчdeaths Ratio problem - by HurtLocker - 01.04.2013, 19:58
Re: killsчdeaths Ratio problem - by MP2 - 01.04.2013, 20:07
Re: killsчdeaths Ratio problem - by Konstantinos - 01.04.2013, 20:13
Re: killsчdeaths Ratio problem - by HurtLocker - 01.04.2013, 20:17
Re: killsчdeaths Ratio problem - by Konstantinos - 01.04.2013, 20:38

Forum Jump:


Users browsing this thread: 2 Guest(s)