не работает скрипт .lua help

au1heee

Новичок
Автор темы
4
0
Lua:
script_name ('test script')
script_author ('vasyok)')
script_description ('test script')

require "lib.moonloader"

local tag = "[testtesttest]:"
local label = 1

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

if label == 1 then
sampAddChatMessage(" test script by w1zratixz started =)", 0xFFFF00)
else
sampAddChatMessage(" test script by w1zratixz started =)", 0xFFFFFF)
end


while true do
wait(0)

end
end

почему не работает скрипт?
пишу в notepad++
 
Решение
Lua:
script_name ('test script')
script_author ('vasyok)')
script_description ('test script')

require "lib.moonloader"

local tag = "[testtesttest]:"
local label = 1

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

    if label == 1 then
        sampAddChatMessage(" test script by w1zratixz started =)", 0xFFFF00)
    else
        sampAddChatMessage(" test script by w1zratixz started =)", 0xFFFFFF)
    end


    while true do
        wait(0)
    end
end

P3rsik

Активный
213
32
Lua:
script_name ('test script')
script_author ('vasyok)')
script_description ('test script')

require "lib.moonloader"

local tag = "[testtesttest]:"
local label = 1

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

    if label == 1 then
        sampAddChatMessage(" test script by w1zratixz started =)", 0xFFFF00)
    else
        sampAddChatMessage(" test script by w1zratixz started =)", 0xFFFFFF)
    end


    while true do
        wait(0)
    end
end
 
  • Нравится
Реакции: au1heee