SA-MP Forums Archive
Annoying "bug" with vehicle positions - 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: Annoying "bug" with vehicle positions (/showthread.php?tid=97088)



Annoying "bug" with vehicle positions - Outbreak - 12.09.2009

I've been working on a vehicle system, where instead of going around using /save to get the vehicle positions, i use a /spawncar command.

This saves the vehicle info to variables. Then when i use /savecars it saves the information to a file.

The problem im having is when i want to change the vehicle position... If i spawn it in once place, i try to change it to another place.

I made a /vsave command which gets the vehicle x y z and angle. By the way GetVehicleZAngle sucks.... Doesn't work. So instead io get in the car and use GetPlayerFacingAngle.

Anyway... It spawns the car but not in the position i want.

Also im having problems with colours. If i spawn a vehicle this way... /spawncar 541 3 1 that would spawn a red and white bullet. But if i wanted to change it, i get in and use /carcolor 3 0 that would change it to red and black.

The variables for the colours are then replaced with the new colour id. But then when i try and save the vehicles. The vehicle which colour i changed doesnt save...


Re: Annoying "bug" with vehicle positions - Vollzeitfan - 12.09.2009

Nice from you to tell, us your problem...
...but withour the code we can't help you.