Jump to content

When i close the server the car position is not saved


ARares

Recommended Posts

Posted (edited)

Sometimes the cars positions are not saved, just after the Backup are saved, how i can make a code to save the car position every time, or with a command?

Edited by ARares
Posted

Is this a Dayz server? If so then the database is corrupt because you spawned vehicles with the admin panel so you have to fix the database by editing or deleting it.

If not you need to get every vehicle on the server and store them somehow (file, XML, SQLite) when the resource stops and every "X" amount of time. Then you use the information from the saved cars to create them again once the resource starts.

  • Like 1
Posted
4 minutes ago, Mr.Loki said:

Is this a Dayz server? If so then the database is corrupt because you spawned vehicles with the admin panel so you have to fix the database by editing or deleting it.

If not you need to get every vehicle on the server and store them somehow (file, XML, SQLite) when the resource stops and every "X" amount of time. Then you use the information from the saved cars to create them again once the resource starts.

Yes, is dayz server, but i didn't spawned vehicles with admin panel, i spawned them with a VSS.

And, what i need to edit in the DB? and how i can edit the DB?

This is my Gamemode: https://github.com/mihayy5/mtadayz07

Posted
3 minutes ago, Mr.Loki said:

Here, it should be the first link, but you'd be better off deleting the DB.

Ok, Thanks now i need to find which is the DB, because i have 2 files which are .db: 
1. backup
2. teams

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...