- 33
- 3
- Версия MoonLoader
- .026-beta
function sampev.onServerMessage(color, text)
local pattern = debug and "- [Жалоба] от (.+)%[(%d+)%]: (.+)" or '{33AA33}- [Жалоба] от (.+)%[(%d+)%]:{FFDD00} (.+)'
if text:match(pattern) then
local name, id, msg = text:match(pattern)
if not rep_window.v and report_autoopen.v then
report.name = u8(name)
report.id = u8(id)
report.text = u8(msg)
rep_window.v = true
end
[15:54:28] - [Жалоба] от Thomas_Lewis[200]: {FFFFFF}test
В чём проблема?
local pattern = debug and "- [Жалоба] от (.+)%[(%d+)%]: (.+)" or '{33AA33}- [Жалоба] от (.+)%[(%d+)%]:{FFDD00} (.+)'
if text:match(pattern) then
local name, id, msg = text:match(pattern)
if not rep_window.v and report_autoopen.v then
report.name = u8(name)
report.id = u8(id)
report.text = u8(msg)
rep_window.v = true
end
[15:54:28] - [Жалоба] от Thomas_Lewis[200]: {FFFFFF}test
В чём проблема?