TREWKO, по-моему так
local text_dxs_consoles = string.format("текст_1 %d\\n","текст_2")
function ui_dxs_console_text_dev_show()
local ltx = system_ini()
local ui_dxs_console_text_dev_show_check = ltx:r_float("DiXaresVolumes","DiXaresXrConsoles")
if ui_dxs_console_text_dev_show_check == 1 then
local hud = get_hud()
local cs = hud:GetCustomStatic("ui_dxs_console_text")
if cs == nil then
hud:AddCustomStatic("ui_dxs_console_text", true)
cs = hud:GetCustomStatic("ui_dxs_console_text")
end
local ui_console_text_t = current_enemy
local ui_console_text_n = text_dxs_consoles
local msg
if ui_console_text_t == current_enemy then
msg = ui_console_text_n
else
msg = ui_console_text_n
end
if cs ~= nil then cs:wnd():SetText(msg) end
end
end
function ui_dxs_console_text_dev_show()
local ltx = system_ini()
local ui_dxs_console_text_dev_show_check = ltx:r_float("DiXaresVolumes","DiXaresXrConsoles")
if ui_dxs_console_text_dev_show_check == 1 then
local hud = get_hud()
local cs = hud:GetCustomStatic("ui_dxs_console_text")
if cs == nil then
hud:AddCustomStatic("ui_dxs_console_text", true)
cs = hud:GetCustomStatic("ui_dxs_console_text")
end
local ui_console_text_t = current_enemy
local ui_console_text_n = text_dxs_consoles
local msg
if ui_console_text_t == current_enemy then
msg = ui_console_text_n
else
msg = ui_console_text_n
end
if cs ~= nil then cs:wnd():SetText(msg) end
end
end