29.11.2010, 04:16
Simply because you are defining the speed as a float, when in fact the function you have posted actually returns an integer and not a float. So instead of speed being a float, it should be an integer, which means your code should be this:
pawn Код:
new speed = GetPlayerSpeed(playerid);
format(string,sizeof(string), "%d KM/H", speed);
TextDrawSetString(Speed[playerid], string);