08.08.2010, 08:26
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.

