Floats. "xx.0000000000"
#2

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);
Reply


Messages In This Thread
Floats. "xx.0000000000" - by TaMeD - 29.11.2010, 04:12
Re: Floats. "xx.0000000000" - by JaTochNietDan - 29.11.2010, 04:16

Forum Jump:


Users browsing this thread: 1 Guest(s)