Need help with kill/death ratio
#5

A run time error about diving with 0 will be caused if deaths are 0. Use this for the ratio:
pawn Код:
floatdiv(PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths])
And use placeholder:
pawn Код:
K/D Ratio: [%.2f]
instead of:
pawn Код:
K/D Ratio: [%d]
Reply


Messages In This Thread
Need help with kill/death ratio - by barts - 15.02.2014, 13:03
Re: Need help with kill/death ratio - by fiki574 - 15.02.2014, 13:07
Re: Need help with kill/death ratio - by MBilal - 15.02.2014, 13:10
Re: Need help with kill/death ratio - by Threshold - 15.02.2014, 13:20
Re: Need help with kill/death ratio - by Konstantinos - 15.02.2014, 13:25
Re: Need help with kill/death ratio - by barts - 15.02.2014, 13:35
Re: Need help with kill/death ratio - by Konstantinos - 15.02.2014, 13:38
Re: Need help with kill/death ratio - by ReD_HunTeR - 15.02.2014, 13:39
Re: Need help with kill/death ratio - by barts - 15.02.2014, 13:52

Forum Jump:


Users browsing this thread: 1 Guest(s)