04.06.2012, 17:53
hee all,
i have a huge problem in my script, what involves the vehicle id's of my housecars
i create them like this:
cInfo[houseid][HouseCar] = CreateVehicle(cInfo[houseid][CarModel], Carx, Cary, Carz, Angx, cInfo[houseid][CarColor1], cInfo[houseid][CarColor2], 120);
and destroy them like this:
DestroyVehicle(cInfo[houseid][HouseCar]);
cInfo[houseid][HouseCar] = 0;
when the server starts everything works out fine, but after a while some of them get mixed up.
since i only allowed the owner of the car to drive it, the car gets unusable.
i really don't know why this happens, anyone have an idea?
i'm really sure that everywhere i destroy the vehicle i define it to 0 like i showed above!
Thanks in advance,
Jop9888
i have a huge problem in my script, what involves the vehicle id's of my housecars
i create them like this:
cInfo[houseid][HouseCar] = CreateVehicle(cInfo[houseid][CarModel], Carx, Cary, Carz, Angx, cInfo[houseid][CarColor1], cInfo[houseid][CarColor2], 120);
and destroy them like this:
DestroyVehicle(cInfo[houseid][HouseCar]);
cInfo[houseid][HouseCar] = 0;
when the server starts everything works out fine, but after a while some of them get mixed up.
since i only allowed the owner of the car to drive it, the car gets unusable.
i really don't know why this happens, anyone have an idea?
i'm really sure that everywhere i destroy the vehicle i define it to 0 like i showed above!
Thanks in advance,
Jop9888