Problems with floatround()
#2

pawn Код:
new Float:ZAngle = GetVehicleZAngle(GetPlayerVehicleID(i), ZAngle);
This executes GetVehicleZAngle first and puts the angle in ZAngle. But the function itself returns nothing special, in this case it just returns 1, and this is stored in ZAngle, overwriting the previously stored angle. Just ignore its return-value, and it will work:

pawn Код:
new Float:ZAngle;
GetVehicleZAngle(GetPlayerVehicleID(i), ZAngle);
Reply


Messages In This Thread
Problems with floatround() - by admantis - 21.05.2011, 22:36
Re: Problems with floatround() - by Mauzen - 21.05.2011, 22:38
Respuesta: Re: Problems with floatround() - by admantis - 21.05.2011, 22:39

Forum Jump:


Users browsing this thread: 1 Guest(s)