3B00DG4MER Posted February 20, 2015 Share Posted February 20, 2015 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
3B00DG4MER Posted February 20, 2015 Author Share Posted February 20, 2015 Client Side Link to comment
MIKI785 Posted February 20, 2015 Share Posted February 20, 2015 Well, do you send the XML to the client? Because if you don't then it creates the empty file. Link to comment
3B00DG4MER Posted February 21, 2015 Author Share Posted February 21, 2015 It's in client from the first time 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