Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadList()
- if fileExists("wanteds.xml") then
- local node = xmlLoadFile("wanteds.xml")
- if node then
- end
- else
- local node = xmlCreateFile("wanteds.xml","wanteds")
- if node then
- local childNode = xmlCreateChild(node, "newchild")
- xmlSaveFile(node)
- xmlUnloadFile(node)
- outputChatBox("wanteds.xml elkészítve.")
- else
- outputChatBox("wanteds.xml elkészítése sikertelen.")
- end
- end
- end
- function createFileHandler()
- local rootNode = xmlCreateFile("new.xml","newroot")
- local childNode = xmlCreateChild(rootNode, "newchild")
- xmlSaveFile(rootNode)
- xmlUnloadFile(rootNode)
- outputChatBox("Elkészítve")
- end
- addCommandHandler("createfile", createFileHandler)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement