почему не робит ?

Huhnerbein

Активный
Автор темы
124
33
Версия SA-MP
  1. 0.3.7 (R1)
Lua:
script_name('1')
script_author('1.')

require("moonloader")
require "lib.sampfuncs"


function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("f1", bind)
    wait(-1)
end


function bind (arg)
    sampSendChat("/god")
    wait(1350)
    sampSendChat("/vgod")
    wait(1350)
    sampSendChat("/wolrd 99")
    wait(1350)
    sampSendChat("/toglogo")
    wait(1350)
    sampSendChat("/createmap ru54 123123")
    wait(1350)
    sampSendChat("/color 238")
end
 

zTechnology

Известный
1,094
485
Lua:
script_name('1')
script_author('1.')

require("moonloader")
require "lib.sampfuncs"


function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("f1", bind)
    while true do wait(0) end
end


function bind (arg)
    sampSendChat("/god")
    wait(1350)
    sampSendChat("/vgod")
    wait(1350)
    sampSendChat("/wolrd 99")
    wait(1350)
    sampSendChat("/toglogo")
    wait(1350)
    sampSendChat("/createmap ru54 123123")
    wait(1350)
    sampSendChat("/color 238")
end
 

Huhnerbein

Активный
Автор темы
124
33
Lua:
script_name('1')
script_author('1.')

require("moonloader")
require "lib.sampfuncs"


function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("f1", bind)
    while true do wait(0) end
end


function bind (arg)
    sampSendChat("/god")
    wait(1350)
    sampSendChat("/vgod")
    wait(1350)
    sampSendChat("/wolrd 99")
    wait(1350)
    sampSendChat("/toglogo")
    wait(1350)
    sampSendChat("/createmap ru54 123123")
    wait(1350)
    sampSendChat("/color 238")
end
не робит
 

dagdaq

Известный
56
6
Lua:
script_name('1')
script_author('1.')

require("moonloader")
require "lib.sampfuncs"


function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("f1", bind)
    wait(-1)
end


function bind (arg)
    sampSendChat("/god")
    wait(1350)
    sampSendChat("/vgod")
    wait(1350)
    sampSendChat("/wolrd 99")
    wait(1350)
    sampSendChat("/toglogo")
    wait(1350)
    sampSendChat("/createmap ru54 123123")
    wait(1350)
    sampSendChat("/color 238")
end
Я конечно не особо шарю, но wait же вроде работает только в функции main, а дальше через lua.threade нужно
 
  • Нравится
Реакции: zTechnology и Huhnerbein