ARares Posted July 30, 2017 Share Posted July 30, 2017 I have a DayZ Gamemode, and at the vehicles are saved in backup.db, but is a problem, because are saved the the destroyed cars, how i can remove that? Code:https://hastebin.com/wohefayeze.lua Link to comment
DonOmar Posted July 30, 2017 Share Posted July 30, 2017 Use DB Browser for SQLite program and edit the database with it then reupload it to your ftp. Link to comment
MisterQuestions Posted July 30, 2017 Share Posted July 30, 2017 Maybe you should add a check for vehicle to see if its blown or with low/invalid health then you see if you save it or no Link to comment
ARares Posted July 31, 2017 Author Share Posted July 31, 2017 (edited) 9 hours ago, MisterQuestions said: Maybe you should add a check for vehicle to see if its blown or with low/invalid health then you see if you save it or no Idk lua, can you tell me which line i need to edit? and what i need to add? Edited July 31, 2017 by ARares Link to comment
MisterQuestions Posted July 31, 2017 Share Posted July 31, 2017 We are here to help you, you should learn lua first before trying to modify something from your gamemode. Link to comment
ARares Posted July 31, 2017 Author Share Posted July 31, 2017 3 minutes ago, MisterQuestions said: We are here to help you, you should learn lua first before trying to modify something from your gamemode. Ok, i fixed that bug, but i have one more, and how i can add a unique id to all vehicles?, the id to me random generated and to look like this: DVeh0xxxxx (and to add a random number e.g. DVeh05 or DVeh0142) How i can do that?, i need that to check if the Vehicle is in DB. Link to comment
MisterQuestions Posted July 31, 2017 Share Posted July 31, 2017 Why you don't just create an auto_index in your database? Link to comment
ARares Posted July 31, 2017 Author Share Posted July 31, 2017 1 minute ago, MisterQuestions said: Why you don't just create an auto_index in your database? I have one, is called 'id' but is not attached to the vehicle from game, is just in DB. and if is not attached i can't check that id with the one from DB 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