Need some help with this formula to calculate kill death ratio
#2

pawn Код:
new Float: ratio;
if (kills[killerid] > 0 && deaths[killerid] > 0)
  ratio = kills[killerid] / deaths[killerid];
else
  ratio = 0;
then use the variable to save it, it looks much cleaner
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)