Need help with a huge command
#2

Quote:
Originally Posted by Endis
Посмотреть сообщение
Hey everyone. I'm using one of the filterscripts of car ownership systems. However, after a car has been crashed/destroyed, it just respawns in the same position it was destroyed at. So I got rid of it and now trying to create a command which would respawn the car with all the tune when a player types in a command and pays amount of money for it. However, something doesn't work out for me and what happens after I type in the command - the car spawns but in the farm (Blueberry). Please help?
Without looking at the code, this is one thing that stands out and could really help solve your problem. The Blueberry Farm (aka Blueberry Acres) is located at 0,0,0 and I am sure this is where you are finding your vehicles. The reason this would happen, is because it is either:
  • Not loading position data
  • Not saving position data
  • Not retrieving position data correctly
When it saves the data, does it save the x,y,z of the car? If it does, does it show the correct co-ordinates in the file?
If it does save and the co-ords are correct, check if the loading is working. Maybe make a quick command that loads it and when you use the command it returns a string with the location of the car after loading. If that is correct, you may need to check that the data is being applied to OnVehicleSpawn().
Reply


Messages In This Thread
Need help with a huge command - by Endis - 05.01.2014, 18:10
Re: Need help with a huge command - by BlackSirrah239 - 06.01.2014, 02:54
Re: Need help with a huge command - by Endis - 06.01.2014, 17:01

Forum Jump:


Users browsing this thread: 2 Guest(s)