Jump to content

script error


Stratospheria

Recommended Posts

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) 
  

Link to comment

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

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...