Jump to content

Problem with \n LUA


Recommended Posts

Hi friends.

Actually i has a problem with \n in i/o files in a quest.

 

quest:

With \t works:

	local file = io.open("/usr/home/mt2/share/locale/logs/itemshop/"..pc.get_account().."/"..pc.get_name()..".txt", "a+")
	file:write("ID Jugador:\t"..pc.get_player_id().."\tNombre Jugador:\t"..pc.get_name().."\tFecha:\t"..os.date("%c").."\tCoins Gastadas: "..coins.."\tCoins Restantes: "..dr2[1].cash.."\t")
	file:close()

 

With \n not works:

	local file = io.open("/usr/home/mt2/share/locale/logs/itemshop/"..pc.get_account().."/"..pc.get_name()..".txt", "a+")
	file:write("ID Jugador:\t"..pc.get_player_id().."\tNombre Jugador:\t"..pc.get_name().."\tFecha:\t"..os.date("%c").."\tCoins Gastadas: "..coins.."\tCoins Restantes: "..dr2[1].cash.."\n")
	file:close()

error: 

d7edeac615.jpg

 

Why?

Edited by Metin2 Dev
Core X - External 2 Internal

:D

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.