Не работает скрипт

Ciske

Новичок
Автор темы
18
6
Версия MoonLoader
.026-beta
Полный новичок в LUA. Есть код. Код не работает. Вообще. Что с ним, паразитом, не так то?!

Скрипт:
require 'lib.moonloader'
require 'lib.sampfuncs'

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(0) end
   
    sampRegisterChatCommand('start', floodStart)
end

function floodStart()
    sampSendChat("/capture")
end

Moonloader и SF взяты из закреплённых тем на форуме.
 

_razor

t.me/sssecretway | ТГК: t.me/razor_code
Всефорумный модератор
1,966
3,277
Lua:
require 'lib.moonloader'
require 'lib.sampfuncs'

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(0) end
  
    sampRegisterChatCommand('start', floodStart)
    wait(-1)
end

function floodStart()
    sampSendChat("/capture")
end
 
  • Нравится
Реакции: Ciske

SampSeller

Участник
35
3
Lua:
require 'lib.moonloader'
require 'lib.sampfuncs'

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(0) end
 
    sampRegisterChatCommand('start', floodStart)
    wait(-1)
end

function floodStart()
    sampSendChat("/capture")
end
Чето поменялось?