dzek (varez) Posted April 3, 2010 Posted April 3, 2010 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. 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)!
Antibird Posted April 3, 2010 Posted April 3, 2010 Try to use two backslashes in the filepath instead of the single slash, like: xmlCreateFile(":xmlsave\\vvv.xml", "xml") I'm not joking. If it doesn't help, try to specify a path via only a filename without a name of the resource.
dzek (varez) Posted April 3, 2010 Author Posted April 3, 2010 still the same.. i tried without full path.. the same 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)!
Antibird Posted April 3, 2010 Posted April 3, 2010 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
dzek (varez) Posted April 3, 2010 Author Posted April 3, 2010 omg...... my fault... i was searching for that in servers resources ahh, too much thinking 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)!
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