3B00DG4MER Posted February 20, 2015 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 !!!! SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
MIKI785 Posted February 20, 2015 Posted February 20, 2015 Is this server side? Lua Scripter Owner of mshost.cz MTA portal.
3B00DG4MER Posted February 20, 2015 Author Posted February 20, 2015 Client Side SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
MIKI785 Posted February 20, 2015 Posted February 20, 2015 Well, do you send the XML to the client? Because if you don't then it creates the empty file. Lua Scripter Owner of mshost.cz MTA portal.
3B00DG4MER Posted February 21, 2015 Author Posted February 21, 2015 It's in client from the first time SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
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