ARares Posted July 30, 2017 Share Posted July 30, 2017 (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 July 30, 2017 by ARares Link to comment
Mr.Loki Posted July 30, 2017 Share Posted July 30, 2017 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. 1 Link to comment
ARares Posted July 30, 2017 Author Share Posted July 30, 2017 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 Link to comment
Mr.Loki Posted July 30, 2017 Share Posted July 30, 2017 Here, it should be the first link, but you'd be better off deleting the DB. 1 Link to comment
ARares Posted July 30, 2017 Author Share Posted July 30, 2017 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now