K/D ratio
#1

This is the code I have at the moment:

pawn Код:
new Float:kd =  float(kills)/float(deaths); // Arrays, but replaced with variables to make it simpler
But if I have no kills and no deaths, it says 'NAN' - how do I make it say 0.0?
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: 3 Guest(s)