13.07.2009, 19:57
Hello ... again.
I've got another problem which I don't see solution for it.
I made that vehicles save their virtual world and interior in the file. On server restart 'LoadDynamicCars()' is called which spawns all the cars from the file. I also added SetVehicleVirtualWorld & LinkVehicleToInterior, so vehicles would be set in the right vw and interior.
When I teleport to interior and vw where vehicle should spawn there is nothing. I put myself in that vehicle ID and I become invisable (I am still in the right interior and virtual world). I use command which just does
and I and vehicle become visable.
So basically vehicle is in the right virtual world and interior just stuck a little bit off ground and invisable. When I put myself in that vehicle vehicle blink a bit, so I can see it for a second before it disappears.
Oh and vehicles in vw and interior 0 spawn normally, just vehicles in any other interiors and virtual worlds cause problems. I have also tried to call SetVehicleVirtualWorld & LinkVehicleToInterior two times on 'LoadDynamicCars()', but nothing has changed.
I was thinking quite a bit, but I haven't found any solution to this yet.
Thanks for help
I've got another problem which I don't see solution for it.
I made that vehicles save their virtual world and interior in the file. On server restart 'LoadDynamicCars()' is called which spawns all the cars from the file. I also added SetVehicleVirtualWorld & LinkVehicleToInterior, so vehicles would be set in the right vw and interior.
When I teleport to interior and vw where vehicle should spawn there is nothing. I put myself in that vehicle ID and I become invisable (I am still in the right interior and virtual world). I use command which just does
Код:
new inter = GetPlayerInterior(playerid); new world = GetPlayerVirtualWorld(playerid); LinkVehicleToInterior(vehicleid, DynamicCars[car][Interior]); SetVehicleVirtualWorld(vehicleid, DynamicCars[car][World]);
So basically vehicle is in the right virtual world and interior just stuck a little bit off ground and invisable. When I put myself in that vehicle vehicle blink a bit, so I can see it for a second before it disappears.
Oh and vehicles in vw and interior 0 spawn normally, just vehicles in any other interiors and virtual worlds cause problems. I have also tried to call SetVehicleVirtualWorld & LinkVehicleToInterior two times on 'LoadDynamicCars()', but nothing has changed.
I was thinking quite a bit, but I haven't found any solution to this yet.
Thanks for help