K/D ratio
#5

new Float:kd = floatdiv(playerstat[playerid][PSTAT_KILLS], playerstat[playerid][PSTAT_DEATHS]);

It's still 'NAN' when I have no kills/deaths, and if I get 1 kill (with still no deaths) it says on 0. I have to die for it to work.

Help :x
Reply


Messages In This Thread
K/D ratio - by MP2 - 19.09.2011, 20:22
Re: K/D ratio - by [L3th4l] - 19.09.2011, 20:24
Re: K/D ratio - by =WoR=Varth - 19.09.2011, 20:25
Re: K/D ratio - by skullmuncher1337 - 19.09.2011, 20:25
Re: K/D ratio - by MP2 - 19.09.2011, 20:39
Re: K/D ratio - by skullmuncher1337 - 19.09.2011, 20:42
Re: K/D ratio - by =WoR=Varth - 19.09.2011, 20:43
Re: K/D ratio - by skullmuncher1337 - 19.09.2011, 20:45
Re: K/D ratio - by =WoR=Varth - 19.09.2011, 20:48
Re: K/D ratio - by MP2 - 19.09.2011, 21:04

Forum Jump:


Users browsing this thread: 2 Guest(s)