- 220
- 58
- Версия SA-MP
-
- 0.3.7 (R1)
- 0.3.7-R2
- 0.3.7-R3
- 0.3.7-R4
- 0.3.7-R5
- 0.3DL
- 0.3e (R1) / CR-MP
- CR-MP 0.3.7
- Любая
- Другая
Как сделать так, чтобы только название предметов выводилось?
код:
local sampev = require 'lib.samp.events'
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
local text = text:gsub('{......}', '')
if text:find('Предмет: (.+)') then
nikcwawd = text:match('Предмет: (.+)')
sampAddChatMessage(nikcwawd, -1)
end
end