Jump to content

[HELP] What wrong with xml save?


Turbesz

Recommended Posts

i use xmldata script to save datas to xml file, but now does not work... the file was created successfully, but i cant load the datas from the xml file. 

local xml = exports.xmldata

function save()
    local veh = getPedOccupiedVehicle(localPlayer)
    local hand = getVehicleHandling(veh)

    xml:xmlSaveData("asd", hand, false,true)
end

addCommandHandler("test",save)

function loadx ()
    local saved = xml:xmlLoadData ( "asd", false, true)

    for k, v in ipairs(saved) do
        outputChatBox(v)
    end

end

addCommandHandler("load",loadx)

And i want to save more than one handling to xml file, but i can insert only 1 to the file, when i try to save another one then overwrites the previous one...

what wrong? how can i load the data, and insert more handling to the file?

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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