Stratospheria Posted November 8, 2010 Posted November 8, 2010 I have made a function to test out xml file working, but now it doesn't work, nothing happens when I activate the function, the function is here: Function createFileHandler() local RootNode = xmlCreateFile("new.xml"," newroot") local NewNode = xmlCreateChild(RootNode, "newchild") xmlSaveFile(RootNode) end addCommandHandler("createfile", createFileHandler)
Castillo Posted November 8, 2010 Posted November 8, 2010 does it shows any error in debug? /debugscript 3 in-game. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
dzek (varez) Posted November 8, 2010 Posted November 8, 2010 are you doing this client or server side? remember if you are doing it on client side - search your xml here: /mta/mods/deathmatch/resources/your_res/ NOT /mta/server/mods/deathmatch/resources/your_res/ also you have a space here: local RootNode = xmlCreateFile("new.xml"," newroot") idk how it behave with this 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)!
Stratospheria Posted November 9, 2010 Author Posted November 9, 2010 I found out with Debugscript 3, I wrote function with capital ^^
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