Help with Car system
#1

Allright so I made a car system and everything worked fine until I wanted to modify it so that it's not the name that's saved into the carsystem file on carowner. Instead I wanted to make that it saves the carid into a variable called PlayerInfo[playerid][vKey1] also a vkey2. This is because people should be able to change names. Now I realized that if I buy a vehicle (spawns when clicking on a dialog), then spawn another vehicle with /vcreate that I had before and then spawn another one with the dialog buy buying it. Now if I delete the car that I created with /vcreate and restart the server, then second cars ID is degraded by 1 which means the players doesn't own that vehicle anymore. Now I need suggestions on how I actually can fix this so that it won't bug everytime when people are doing /vscrap or anything. Any suggestions are welcome.
Reply


Messages In This Thread
Help with Car system - by Mystique - 08.08.2010, 08:26
Re: Help with Car system - by Carlton - 08.08.2010, 08:44
Re: Help with Car system - by Mystique - 08.08.2010, 08:51
Re: Help with Car system - by Carlton - 08.08.2010, 08:52
Re: Help with Car system - by Mystique - 08.08.2010, 08:55
Re: Help with Car system - by Carlton - 08.08.2010, 09:00
Re: Help with Car system - by Mystique - 08.08.2010, 09:06
Re: Help with Car system - by Carlton - 08.08.2010, 09:26
Re: Help with Car system - by Mystique - 08.08.2010, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)