Make KDR
#3

Quote:
Originally Posted by Cannary2048
Посмотреть сообщение
In statistics, ratio = mean (mean/mode/median).
So basically you'd have to sum up the kill+death then divide it by the amount of kill one player has.
What You're talking about 'average', that's a completely different thing.

ratio = kills / deaths

Therefore,
pawn Код:
new Float:KillDeathRatio;
if(PlayerInfo[giveid][Deaths] != 0) KillDeathRatio = PlayerInfo[giveid][Kills] / PlayerInfo[giveid][Deaths];
//Deaths must not be equal to 0, as you cannot divide by 0.
Reply


Messages In This Thread
Make KDR - by PowerF - 11.01.2015, 00:24
Re: Make KDR - by Cannary2048 - 11.01.2015, 05:27
Re: Make KDR - by Threshold - 11.01.2015, 08:11
Re: Make KDR - by fatlirmorina - 11.01.2015, 08:54

Forum Jump:


Users browsing this thread: 1 Guest(s)