Quote:
Originally Posted by ProjectMan
pawn Код:
new Float:speed = GetVSpeed(playerid); //Float new Float:newdist = speed / 3600.0;
|
There you go. You defined speed as an integer first which you were dividing by a float which is not possible. Either you need to use cast functions to change int into float or you can simply make speed var as a float. Just like this poster quoted. Problem solved!
EDIT:
Quote:
Originally Posted by PowerPC603
pawn Код:
new Float:speed = GetVSpeed(playerid); //Float new Float:newdist = speed / 3600.0;
Also put 3600.0 as float.
To prevent warnings about tag mismatches and to be certain you're dividing a float by a float.
|
Yeah ofcourse my bad. Thanks to PPC for the help.