Narutimmy Posted June 28, 2015 Share Posted June 28, 2015 hola ise este script que guarda una informacion en un txt pero me la guarda mal.... osea me la guarda asi: HulkingCrocodile58 (Narutimmy) envio 10 Reputacion a HulkingCrocodile58HulkingCrocodile58 (Narutimmy) envio 10 Reputacion a HulkingCrocodile58 Y lo que yo quiero es que la guarde asi: HulkingCrocodile58 (Narutimmy) envio 10 Reputacion a HulkingCrocodile58 HulkingCrocodile58 (Narutimmy) envio 10 Reputacion a HulkingCrocodile58 local file = fileOpen("REP.log") if not file then file = fileCreate("REP.log") outputDebugString("Creating REP.log") end fileSetPos ( file, fileGetSize ( file ) ) local written = fileWrite( file, ""..chatterName .. " ("..ussser..") envio " ..quantity.." "..item.." a " ..pName) fileFlush(file) fileClose(file) Link to comment
MTA Team 0xCiBeR Posted June 28, 2015 MTA Team Share Posted June 28, 2015 local file = fileOpen("REP.log") if not file then file = fileCreate("REP.log") outputDebugString("Creating REP.log") end fileSetPos ( file, fileGetSize ( file ) ) local written = fileWrite( file, ""..chatterName .. " ("..ussser..") envio " ..quantity.." "..item.." a " ..pName.."\n") fileFlush(file) fileClose(file) Link to comment
Narutimmy Posted June 28, 2015 Author Share Posted June 28, 2015 local file = fileOpen("REP.log") if not file then file = fileCreate("REP.log") outputDebugString("Creating REP.log") end fileSetPos ( file, fileGetSize ( file ) ) local written = fileWrite( file, ""..chatterName .. " ("..ussser..") envio " ..quantity.." "..item.." a " ..pName.."\n") fileFlush(file) fileClose(file) solo con el /n ? EDIT: GRACIAS! Link to comment
MTA Team 0xCiBeR Posted June 28, 2015 MTA Team Share Posted June 28, 2015 Si con eso debería funcionarte, sino proba agregarle tambien \r pero eso te generaría dos renglones en algunos programas que leen tanto \n como \r De nada Link to comment
Recommended Posts