Quote:
Originally Posted by Mauzen
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);
|
Thank you for your quick response, I never thought of that