не запускается lua

  • Автор темы deleted-user-452405
  • Дата начала
Статус
В этой теме нельзя размещать новые ответы.
D

deleted-user-452405

Гость
Автор темы
Блять как видите пошел программировать))
ну как минимум пытался посмотреть как и что.
1662313872573.png


в гугле посмотрел нету нечего:


msihek:
require "lib.moonloader"
local color = FFFFFF
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand ("payson", msicommand)
end

function msicommand(arg)
    sampAddChatMessage ("test", color)
end
весь код
moonloader.log:
[22:47:37.565248] (system)    msihek.lua: Script terminated. (0E5CBA24)
 

Вложения

  • 1662313954713.png
    1662313954713.png
    27.2 KB · Просмотры: 6
Решение
Lua:
require "lib.moonloader"
local color = 0xFFFFFF

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    sampRegisterChatCommand ("payson", msicommand)

    wait(-1)
end


function msicommand(arg)
    sampAddChatMessage ("test", color)
end

ARMOR

kjor32 is legend
Модератор
4,851
6,081
Lua:
require "lib.moonloader"
local color = 0xFFFFFF

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    sampRegisterChatCommand ("payson", msicommand)

    wait(-1)
end


function msicommand(arg)
    sampAddChatMessage ("test", color)
end
 
Статус
В этой теме нельзя размещать новые ответы.