Jump to content

XMLquestion?


Recommended Posts

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

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...