xXMADEXx Posted June 20, 2013 Share Posted June 20, 2013 (edited) Thanks, but prob solved. Lock please. Edited June 20, 2013 by Guest Link to comment
NeO_DUFFMAN Posted June 20, 2013 Share Posted June 20, 2013 The correct syntax for "xmlLoadFile" is xmlnode xmlLoadFile ( string filePath ) I think what you're trying to do is this: addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), function () local file = xmlLoadFile ("warps.xml") local node = xmlFindChild(file,"warps",0) local houseroot = xmlFindChild (node,"warp",0) for k,v in ipairs (xmlNodeGetChildren(houseroot))do local x = xmlNodeGetAttribute ( v, "Name" ) outputChatBox ( x ) end end ) Link to comment
xXMADEXx Posted June 20, 2013 Author Share Posted June 20, 2013 Thanks, but that wasn't the problem. Solved. Link to comment
OGF Posted June 20, 2013 Share Posted June 20, 2013 U shouldnt ask questions on here till you are at least pulling your hair out or are just clueless how things work. Play around with em first. The best way to learn is when you find the mistakes your self with the exceptions like I just said Link to comment
xXMADEXx Posted June 20, 2013 Author Share Posted June 20, 2013 U shouldnt ask questions on here till you are at least pulling your hair out or are just clueless how things work. Play around with em first. The best way to learn is when you find the mistakes your self with the exceptions like I just said It took me a good two hours (ikr, im a really noob at XML...) Finally, I realized that I could just use the code from GateMaker. 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