Помогите!

Lill_Chich

Участник
Автор темы
73
5
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
  3. 0.3.7-R3
Помогите!
script:
local mainIni = inicfg.load(
{
    settings =
    {
        main_delay = '1000',
        message = 'q',
        no_acctive = true,
        rp = false,
        sbiv = 0,
    }
})

if not doesFileExist('settings_narko.ini') then
    inicfg.save(mainIni, directIni)
end

local delay = (mainIni.settings.main_delay)
local main_delay = imgui.ImBuffer(''..mainIni.settings.main_delay, 100)
local message_sbiv = imgui.ImBuffer(''..mainIni.settings.message, 100)

--checkbox
local checkbox_no_acctive = imgui.ImBool(mainIni.settings.no_acctive)
local checkbox_rp = imgui.ImBool(mainIni.settings.rp)
LOG:
sol: no matching function call takes this number of arguments and the specified types
stack traceback:
[C]: in function 'ImBool'
 

memir

🇷🇺
Всефорумный модератор
333
597
Блядский луа, в котором не расписано нормально ни опкоды ни функции, сделано не для людей, а для ебланов с пробегом 12000 часов практики.
на бхвики инфа по опкодам есть
 

SomaGnoma

Известный
442
152
Помогите!
script:
local mainIni = inicfg.load(
{
    settings =
    {
        main_delay = '1000',
        message = 'q',
        no_acctive = true,
        rp = false,
        sbiv = 0,
    }
})

if not doesFileExist('settings_narko.ini') then
    inicfg.save(mainIni, directIni)
end

local delay = (mainIni.settings.main_delay)
local main_delay = imgui.ImBuffer(''..mainIni.settings.main_delay, 100)
local message_sbiv = imgui.ImBuffer(''..mainIni.settings.message, 100)

--checkbox
local checkbox_no_acctive = imgui.ImBool(mainIni.settings.no_acctive)
local checkbox_rp = imgui.ImBool(mainIni.settings.rp)
LOG:
sol: no matching function call takes this number of arguments and the specified types
stack traceback:
[C]: in function 'ImBool'
пчел..