09.08.2016, 13:08
Hi
i have a problem
i want to make a skill percentage according to player kills and player deaths
this is my code i think all should work correctly but it just shows 0%
whats the problem?
i have a problem
i want to make a skill percentage according to player kills and player deaths
this is my code i think all should work correctly but it just shows 0%
Код:
GetPlayerLevel(playerid)
{
new asb,Shotor,agoz,bgoz,sumi,aall;
asb = PlayerInfo[playerid][pKills];
Shotor = PlayerInfo[playerid][pDeads];
agoz = asb - Shotor;
bgoz = asb + Shotor;
sumi = agoz / bgoz;
aall = sumi * 100;
return aall;
}



umi = float(agoz)/float(bgoz) *100.0;
+Rep