- 325
- 66
- Версия MoonLoader
- Другое
'end' expected (to close 'if' at line 4) near 'sampAddChatMessage'
пробовал переписывать код внутри функции, убирать проверку, но все равно ошибка та же
Lua:
require("samp.events").onSendCommand = function(command)
if not sampIsChatCommandDefined(command) then
local cmd = string.sub(command, 2, #command)
command = "/" .. string.gsub(command, cmd, translite(cmd))
return { command }
sampAddChatMessage(command,-1)
end
end