Jump to content

¿Como sacar un log?


Aruna

Recommended Posts

Posted

Hola quisiera hacer una pregunta como puedo hacer un log de esto

osea quiero que se me cree un documento de texto o archivo .xml en la carpeta "logs" y se agregue los siguientes datos

function build_loginWin() 
    guiSetInputMode("no_binds_when_editing") 
    showCursor(true) 
    confFile = xmlLoadFile("preferencesL.xml") 
    if (confFile) then 
        infoTable["account"] = xmlNodeGetAttribute(confFile,"username") 
        infoTable["pass"] = xmlNodeGetAttribute(confFile,"pass") 
    else 
        confFile = xmlCreateFile("preferencesL.xml","user") 
        xmlNodeSetAttribute(confFile,"username","") 
        xmlNodeSetAttribute(confFile,"pass","") 
         
        infoTable["account"] = getPlayerName(localPlayer) 
        infoTable["pass"] = "" 
    end 
    xmlSaveFile(confFile) 
    confFile = xmlLoadFile("preferences.xml") 
    if (confFile) then 
        xmlNodeSetAttribute(confFile,"username","") 
        xmlNodeSetAttribute(confFile,"pass","") 
    end 

  • Recently Browsing   0 members

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