06.12.2014, 21:04
@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()
Result:
KD1: 0.00
KD2: 0.50
So floatdiv is working, but '/' does not.
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);
KD1: 0.00
KD2: 0.50
So floatdiv is working, but '/' does not.