TheNightRider Posted January 3, 2012 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
JR10 Posted January 3, 2012 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.
Cadu12 Posted January 3, 2012 Posted January 3, 2012 https://wiki.multitheftauto.com/wiki/TriggerClientEvent https://wiki.multitheftauto.com/wiki/TriggerServerEvent
TheNightRider Posted January 3, 2012 Author 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
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