Warning with train
#1

When I spawn a car which uses CreateVehicle to create,
the train nearby loses some of its carriages and gives out a warning:
Code:
Warning: Vehicle xxx was not deleted
Sometimes when I use command to teleport to the NPC who are driving a train,
I will have a train camera following that train.
After a few seconds I will crash.

The trains are created with AddStaticVehicle.
Please help:/

EDIT: After rejoining the server, I can't make the same error to occur again.
Weird...

EDIT 2:
I made that problem again.
When I spawn a car using CreateVehicle, it works fine.
When I go near that train, my car is deleted and gives out a warning:
Code:
Warning: vehicle xxx was not deleted
When I spawn the car again, I was put into the streak carriage and I can't find my car.
I tried to sell my car and that carriage disappears.
My car was mixed up with that carriage.

I used SetVehicleToRespawn for all the vehicles(including the trains) after a certain time.

So what's the problem
Reply
#2

I don't have that problem.
Reply
#3

Sometimes @ san fierro train which is used by NPC just hops to the train rails ( in middle of road ) Syncing problems?
Reply
#4

Yes sometimes it will be put on the tram rail if the coordinate is not exact enough.
Still, I've no idea about the problem.
I'll try to fix that.

EDIT:
Finally I found the problem.
When you try to remove streak trailers(which is created when you create a streak) using DestroyVehicle, they will not disappear.
After that, if you create any vehicles, the warning will be shown, mentioning that the streak trailers are not deleted, and start causing the above problems.

To fix this, try to check if the vehicle is a train(or its trailer) before removing them.
Still, fixing it in the DestroyVehicle function is the best idea.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)