Jump to content

¿Alguna idea para poner esta funcion mas eficiente?


Recommended Posts

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
  • Recently Browsing   0 members

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