UserToDelete Posted June 27, 2014 Share Posted June 27, 2014 addEventHandler("onResourceStart",root, function () xFil = xmlLoadFile("nodes.xml") if xFil == false then outputChatBox("Falta el archivo: 'nodes.xml' en vDscript",root,255,255,255,true) outputServerLog("Falta el archivo: 'nodes.xml' en vDscript") return 0 end local vrs1 = xmlFindChild(xFil, "build", 0) local vrs2 = xmlNodeGetValue(vrs1) xmlNodeSetValue(vrs1, tostring(tonumber(vrs2) + 1)) xmlSaveFile(xFil) buildGetter = xmlNodeGetValue(vrs1) outputChatBox("vDscript build: "..buildGetter,root,255,125,0,true) outputServerLog("vDscript build: "..tostring(buildGetter)) end ) <build>0</build> Link to comment
Recommended Posts