08.03.2012, 07:48
Unsure if I'm meant to post if I haven't experienced this kind of problem, strange really when the server I script is heavily dependant on vehicles.
From looking at the interesting video bug, the problem developes when the vehicles respawn. I know you said it isn't a scripting bug, but maybe show your OnVehicleSpawn() code.
Also, how long have you been using Itter_Add()?
Are you checking the vehicles owner, while destroying?
DestroyVehicle(thisvehicleid);
When the player teleports to PutPlayerInVehicle(playerid, thisvehicleid, 0), is thisvehicleidid removed from the players private vehicle id. If not, the next CreateVehicle() will take thisvehicleid, thus giving the player the wrong vehicle. Even better, as you said no vehicle at all, if no vehicle was newly created, he wouldn't get a vehicle.
Sorry for trying to answer your bug with scripting solutions, but 9/10 it is a scripting issue.
From looking at the interesting video bug, the problem developes when the vehicles respawn. I know you said it isn't a scripting bug, but maybe show your OnVehicleSpawn() code.
Also, how long have you been using Itter_Add()?
Quote:
Originally Posted by [HLF]Southclaw
if one is destroyed for example and someone tries to teleport it
|
DestroyVehicle(thisvehicleid);
When the player teleports to PutPlayerInVehicle(playerid, thisvehicleid, 0), is thisvehicleidid removed from the players private vehicle id. If not, the next CreateVehicle() will take thisvehicleid, thus giving the player the wrong vehicle. Even better, as you said no vehicle at all, if no vehicle was newly created, he wouldn't get a vehicle.
Sorry for trying to answer your bug with scripting solutions, but 9/10 it is a scripting issue.