Castillo Posted September 29, 2010 Posted September 29, 2010 hi, i've got a problem loading data from a xml file to a grid list, dunno why the xml xml won't load but in server side it does... here is my loading code part. function populateGridlist() local rootnode = xmlLoadFile("phones/locationsPhones.xml") if rootnode then for _,group in ipairs(xmlNodeGetChildren(rootnode)) do local row = guiGridListAddRow(listPlaces) local name = xmlNodeGetAttribute(group,"name") guiGridListSetItemText ( listPlaces, row, 1, name, false, false ) outputDebugString("working") end xmlUnloadFile(rootnode) end end thanks in advance. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
dzek (varez) Posted September 29, 2010 Posted September 29, 2010 and meta.xml is? Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Castillo Posted September 29, 2010 Author Posted September 29, 2010 and meta.xml is? <config src="phones/locationsPhones.xml"/> San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
dzek (varez) Posted September 29, 2010 Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Castillo Posted September 29, 2010 Author Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Thank you varez, its working San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
50p Posted September 29, 2010 Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Not necessarily. You can use : <config src="phones/locationPhones.xml" type="client" /> Then you can use getResourceConfig instead. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
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