TheNightRider Posted January 3, 2012 Share Posted January 3, 2012 I have been re doing a Spawn GUI since its existing system is not very good so a friend of mine advised me to base it on XML Have added the information required for spawning etc. into an XML file however I cannot see what ive gone wrong as the debugger saying xmlNodeGetChildren is a bad argument. function AddLoc() function datainfo () local xml = xmlLoadFile("Data.xml"); local xmlNodes = xmlNodeGetChildren(xml); for i,node in ipairs(xmlNodes) do Locs[tonumber(xmlNodeGetAttribute(node,'location'))] = tonumber(xmlNodeGetAttribute(node,'id')); Locs = guiGridListAddRow(Location) end xmlUnloadFile(xml); end end Link to comment
JR10 Posted January 3, 2012 Share Posted January 3, 2012 I suggest using SQLite for saving. This will create Data.xml in the client resources. MTA\mods\deathmatch\resources\RESOURCE\ Post the whole code. Link to comment
Cadu12 Posted January 3, 2012 Share Posted January 3, 2012 https://wiki.multitheftauto.com/wiki/TriggerClientEvent https://wiki.multitheftauto.com/wiki/TriggerServerEvent Link to comment
TheNightRider Posted January 3, 2012 Author Share Posted January 3, 2012 I have made it has serverside but am stuck on writing the function which will use the table and show content in a gridlist 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