Narutimmy Posted June 28, 2015 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)
MTA Team 0xCiBeR Posted June 28, 2015 MTA Team 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)
Narutimmy Posted June 28, 2015 Author 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!
MTA Team 0xCiBeR Posted June 28, 2015 MTA Team 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
Recommended Posts