K/D Ratio
#2

pawn Код:
new
    Float: kd = floatdiv( pInfo[playerid][pKills], pInfo[playerid][pDeaths] )
;

// --

format(wstring, sizeof(wstring), "Kills:[%d] Deaths:[%d] K/D:[%.2f]",kills,deaths,kd);
It's Float, not an integer.
Reply


Messages In This Thread
K/D Ratio - by Slepur - 06.08.2013, 15:20
Re: K/D Ratio - by Konstantinos - 06.08.2013, 15:26
Re: K/D Ratio - by Vince - 06.08.2013, 15:50
Re: K/D Ratio - by arjanforgames - 06.08.2013, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)