Jump to content

XML Files


3B00DG4MER

Recommended Posts

Hi Guys, Here's my code

it's doesn't output nothing !

bots = {} 
function bots.load() 
    local xml = xmlLoadFile("bots.xml") 
    if not xml then 
        xml = xmlCreateFile("bots.xml","bots") 
    end 
    for i,child in ipairs (xmlNodeGetChildren(xml)) do 
    x = xmlNodeGetAttribute(child,"x") 
     
    createBot(unpack(child)) 
    outputChatBox(x) 
    end 
end 

  
<bots> 
<bot x="359.71469116211" y="173.56385803223" z="1008.3893432617" name="DMV" rot="280" int="3" dim="1" /> 
  
  
</bots> 
  

Debug Nothing !!!!

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