06.12.2014, 20:35
Hello, I was wondering how would I make a kill death ratio(k/d) for my stats, if you know how please show me, thank you!
new totalkills, totaldeaths, Float:kdratio;
totalkills++; totaldeaths++;
kdratio = floatdiv(totalkills, totaldeaths);
new kills = 50, deaths = 100, Float:kdratio1, Float:kdratio2;
kdratio1 = kills/deaths;
kdratio2 = floatdiv(kills, deaths);
printf("KD1: %.2f", kdratio1);
printf("KD2: %.2f", kdratio2);