SetVehicleZAngle(vehicleid,angle) bug or.. ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetVehicleZAngle(vehicleid,angle) bug or.. ? (
/showthread.php?tid=73382)
SetVehicleZAngle(vehicleid,angle) bug or.. ? -
luxeon - 14.04.2009
pawn Код:
van = CreateVehicle(498,-2440.7063,131.8881,34.7436,270.7980,65,47,-1);
SetVehiclePos(van1, Float:carx, Float:cary, Float:carz);
SetVehicleZAngle(van1, Float:carangle);
The problem is, that
Float:carangle is 180.xx, but it sets it to 270.xx
Why ?! How is that possible ?
p.s. while writing this i have discovered, that if i change angle at CreateVehicle() to 180, then it works as needed. (like CreateVehicles() angle doesn't want to change..).
What am i doing wrong ?
Luxeon
Re: SetVehicleZAngle(vehicleid,angle) bug or.. ? -
Benjo - 14.04.2009
I think there is a SAMP bug that means SetVehicleZAngle will not work if the vehicle in question has not been used.
Re: SetVehicleZAngle(vehicleid,angle) bug or.. ? -
luxeon - 14.04.2009
yeah, thought that
thanks