#5

@Kaperstone: I know I'm not the best scripter out here, but I tested both ways but using '/' didn't work.

I've put this under main()
pawn Код:
new kills = 50, deaths = 100, Float:kdratio1, Float:kdratio2;
kdratio1 = kills/deaths;
kdratio2 = floatdiv(kills, deaths);
printf("KD1: %.2f", kdratio1);
printf("KD2: %.2f", kdratio2);
Result:
KD1: 0.00
KD2: 0.50

So floatdiv is working, but '/' does not.
Reply


Messages In This Thread
K/d - by LeXuZ - 06.12.2014, 20:35
Re: K/d - by Kaperstone - 06.12.2014, 20:40
Re: K/d - by Schneider - 06.12.2014, 20:43
Re: K/d - by Kaperstone - 06.12.2014, 20:53
Re: K/d - by Schneider - 06.12.2014, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)