stefutz101 Posted April 3, 2016 Share Posted April 3, 2016 Hi. I work a resource what save vehicles in a xml file. vehicles.map "416" id="4478" posx="1178.0419921875" posy="-1308.537109375" posz="14.001264572144" rotx="356.05041503906" roty="0.6591796875" rotz="269.79675292969" interior="0" dimension="0" color1="1" color2="3" health="1000" fuel="100" engineState="0" lightsState="0" handbrakeState="1" lockState="0" factionid="8573" createdby="st3f101" owner="-1" tinted="0"> For example i have 1 vehicle saved in xml file. I have a function what create a vehicle and save it in xml file.But the problem is : after i created a new vehicle it appear i xml file but i must restart the resource because xmlLoadFile dont reload the file. For example i create a vehicle . When i want to park that vehicle , it modifity in xml file x y z for that vehicle. If i dont restart the resource it cant find car in resource. After i restarted resource , all works fine. How i can fix that ? This is isn't working fine because my xml file is a .map file ? Link to comment
Simple0x47 Posted April 6, 2016 Share Posted April 6, 2016 Why don't you make a vehicles.xml and make a script which controls all that part? Because what you're doing it's add info to the map but the map doesn't reload when you modify it making you to restart the resource. What's the best choice? A mySQL database. But if you wanna make it easier just use a .xml. Link to comment
Simple0x47 Posted April 6, 2016 Share Posted April 6, 2016 Why don't you make a vehicles.xml and make a script which controls all that part? Because what you're doing it's add info to the map but the map doesn't reload when you modify it making you to restart the resource. What's the best choice? A mySQL database. But if you wanna make it easier just use a .xml. 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