Problems with ratio...
#4

I think you have to transform the integer into a float

pawn Код:
new Float:Kills = PlayerInfo[playerid][pKills];
new Float:Deaths = PlayerInfo[playerid][pDeaths];
new Float:ratio = floatdiv(Kills, Deaths);
or:

pawn Код:
new Float:Kills = float(PlayerInfo[playerid][pKills]);
new Float:Deaths = float(PlayerInfo[playerid][pDeaths]);
new Float:ratio = floatdiv(Kills, Deaths);
Second might be better ^^ xD
Reply


Messages In This Thread
Problems with ratio... - by leapfish - 01.04.2010, 18:51
Re: Problems with ratio... - by Last_Stand_Guardian - 01.04.2010, 18:55
Re: Problems with ratio... - by leapfish - 01.04.2010, 19:04
Re: Problems with ratio... - by Last_Stand_Guardian - 01.04.2010, 19:09
Re: Problems with ratio... - by M4S7ERMIND - 01.04.2010, 19:12
Re: Problems with ratio... - by Last_Stand_Guardian - 01.04.2010, 19:14
Re: Problems with ratio... - by Iuri - 01.04.2010, 19:38
Re: Problems with ratio... - by Andy_McKinley - 01.04.2010, 19:40
Re: Problems with ratio... - by Last_Stand_Guardian - 01.04.2010, 19:44
Re: Problems with ratio... - by Iuri - 01.04.2010, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)