аргументики

bruskin

Участник
Автор темы
148
12
Версия MoonLoader
Другое
помогите, крашится скрипт:
moonloader.log:
[23:16:32.105171] (system)    famhelper: Script terminated. (105D96A4)

Lua:
script_name("famhelper")
script_author("Mark Bruskin")
script_description("famhelper")

require 'lib.moonloader'

function main()
    while not isSampAvailable() do wait(0) end
    sampAddChatMessage('[Family Helper] Скрипт успешно загружен', 0x00FF00)
    sampAddChatMessage('[Family Helper] Автор скрипта: Mark Bruskin | Arizona RP Page', 0x00FF00)
    sampAddChatMessage('[Family Helper] Версия: 1.0', 0x00FF00)
    sampRegisterChatCommand('fi', ficb)
    sampRegisterChatCommand('pr', prcb)
    sampRegisterChatCommand('capt', captcb)
end

function ficb(arg)
    sampSendChat('/faminvite '..arg)
end

function prcb()
    sampSendChat('/fam кто хочет в капт состав - пишите в дс bruskin')
end

function captcb(arg)
    sampSendChat('/fam ВСЕ НА ФАМ КАПТ /FINDFAMZONE '..arg)
end
 

MLycoris

Режим чтения
Проверенный
1,814
1,857
Lua:
script_name("famhelper")
script_author("Mark Bruskin")
script_description("famhelper")
function main()
    sampAddChatMessage('[Family Helper] Скрипт успешно загружен', 0x00FF00)
    sampAddChatMessage('[Family Helper] Автор скрипта: Mark Bruskin | Arizona RP Page', 0x00FF00)
    sampAddChatMessage('[Family Helper] Версия: 1.0', 0x00FF00)
    sampRegisterChatCommand('fi', function(arg)
        sampSendChat('/faminvite '..arg)
    end)
    sampRegisterChatCommand('pr', function()
        sampSendChat('/fam кто хочет в капт состав - пишите в дс bruskin')
    end)
    sampRegisterChatCommand('capt', function(arg)
        sampSendChat('/fam ВСЕ НА ФАМ КАПТ /FINDFAMZONE '..arg)
    end)
    wait(-1)
end
 
  • Нравится
Реакции: the same и qdIbp

Похожие темы

    • Закреплено
    • Статья
    Ответы
    197
    Просмотры
    682K
  1. Ответы
    2K
    Просмотры
    1M
  2. Ответы
    0
    Просмотры
    11K