Ошибка

fggfggfgg2

Участник
Автор темы
98
9
Версия MoonLoader
Другое
Решил написать свой самый первый и простенький скрипт и тут постигла неудача


Lua:
script_name("First Govnokod")

require "lib.moonloader"
local keys = require "vkeys"


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

    if isKeyJustPressed(VK_B) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then sampSendChat("/opengate")
end
 
Решение
Решил написать свой самый первый и простенький скрипт и тут постигла неудача


Lua:
script_name("First Govnokod")

require "lib.moonloader"
local keys = require "vkeys"


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

    if isKeyJustPressed(VK_B) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then sampSendChat("/opengate")
end
end в конце забыл
Lua:
script_name("First Govnokod")

require "lib.moonloader"
local keys = require "vkeys"


function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while...

Hideme Flow

Известный
571
200
Решил написать свой самый первый и простенький скрипт и тут постигла неудача


Lua:
script_name("First Govnokod")

require "lib.moonloader"
local keys = require "vkeys"


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

    if isKeyJustPressed(VK_B) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then sampSendChat("/opengate")
end
end в конце забыл
Lua:
script_name("First Govnokod")

require "lib.moonloader"
local keys = require "vkeys"


function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    while true do
      wait(0)
        if isKeyJustPressed(VK_B) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then
            sampSendChat("/opengate")
        end
    end
end
 
  • Нравится
Реакции: fggfggfgg2

qdIbp

Автор темы
Проверенный
1,450
1,191
Lua:
script_name("First Govnokod")

require "lib.moonloader"
local keys = require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    while true do wait(0)
        if isKeyJustPressed(VK_B) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then
            sampSendChat("/opengate")
        end
    end
end
 
  • Нравится
Реакции: fggfggfgg2