Aruna Posted May 22, 2015 Posted May 22, 2015 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
Recommended Posts