01.04.2010, 19:09
I think you have to transform the integer into a float
or:
Second might be better ^^ xD
pawn Код:
new Float:Kills = PlayerInfo[playerid][pKills];
new Float:Deaths = PlayerInfo[playerid][pDeaths];
new Float:ratio = floatdiv(Kills, Deaths);
pawn Код:
new Float:Kills = float(PlayerInfo[playerid][pKills]);
new Float:Deaths = float(PlayerInfo[playerid][pDeaths]);
new Float:ratio = floatdiv(Kills, Deaths);