Помогите с скриптом

TheyAreY

Участник
Автор темы
66
9
Версия MoonLoader
.026-beta
Вот это чудо не работает(Privatesbiv)
Простите за говнокод, я новенький в клубе
Скрипт вылетает, если я пишу /shelp
script_name("Privatesbiv")
script_author("Made in China")
script_description("Coco jamboo")
require "lib.moonloader"
local keys = require "vkeys"
local sampev = require 'lib.samp.events'
local imgui = require 'imgui'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
local tag = '[Сбив]:'
local label = 1
local main_color = 0x9B1F1F
local main_color_text = "{9B1F1F}"
local white_color = "{FFFFFF}"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end

sampRegisterChatCommand("shelp", cmd_shelp)

if label == 1 then

sampAddChatMessage(tag .. " Сбив успешно загружен! Меню настройки /shelp", 0x9B1F1F)
else
sampAddChatMessage(tag .. " Сбив успешно загружен! Меню настройки /shelp", 0x260099)
end
imgui.Proccess = true
while true do
wait(0)
if isKeyJustPressed(VK_F3) then
sampAddChatMessage("Оп, нихуя", main_color)
end
end
function cmd_shelp(arg)
sampAddChatMessage(tag .. "Меню открыто!", main_color)
end
cmd_shelp(arg)
end
function imgui.OnDrawFrame()
imgui.Begin("Menu")
imgui.Text("Text epta")
imgui.End()
end
 

Вложения

  • moonloader.log
    2.6 KB · Просмотры: 7
Последнее редактирование:

Kak dela?

Активный
226
49
Последнее редактирование:
  • Нравится
Реакции: TheyAreY