- 60
- 20
- Версия MoonLoader
- .027.0-preview
Не работает скрипт в консоле сампфункс пишет ошибку attempt to call global 'IsSampLoaded' (a nil value) stack traceback:
require 'lib.moonloader'
local sampev = require 'lib.samp.events'
function main()
while not isSampAvailable() do wait(100) end
sampAddChatMessage('test', -1)
while true do
wait(0)
sampev.onChatMessage = function (playerId,text)
if text:find('авто') then sampAddChatMessage("zz", -1)end
end
end
end
require 'lib.moonloader'
local sampev = require 'lib.samp.events'
function main()
while not isSampAvailable() do wait(100) end
sampAddChatMessage('test', -1)
while true do
wait(0)
sampev.onChatMessage = function (playerId,text)
if text:find('авто') then sampAddChatMessage("zz", -1)end
end
end
end