Jump to content

xml problem


Recommended Posts

i just started having fun with xml, and faced one problem:

my resource name "xmlsave"

local main = xmlCreateFile(":xmlsave/vvv.xml", "xml")
local cp = xmlCreateChild(main, "checkpoint")
outputChatBox(tostring(xmlNodeSetAttribute(cp, "pp", "xx")))
outputChatBox(tostring(xmlSaveFile(main)))
outputChatBox(tostring(xmlUnloadFile(main)))

everything is true, no errors in debugscript, no file in resource folder.

Link to comment

Do you run it clientside? Just quickly checked through the server console, returned 3 "true" and a file.

UPD Nice for clientside as well, both with full path and relative one. Weird, your code is fine. Try to make new resource from scratch and avoid using "xml" into it's filename. Sounds weird, I know, but who knows. I clearly remember I couldn't give a "hud" name to the node. Everything else was working, but "hud" wasn't. You may be the chosen one :wink:

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...