mimgui

Статус
В этой теме нельзя размещать новые ответы.

IlyaHL2

Известный
Автор темы
232
49
Версия MoonLoader
.026-beta
Lua:
local new = imgui.new
local renderWindow = new.bool()
local xz = {
    {imgui.new.int(0)},
    {imgui.new.int(0)},
    {imgui.new.int(0)},
}
local sizeX, sizeY = getScreenResolution()

local newFrame = imgui.OnFrame(
    function() return renderWindow[0] end,
    function(player)
        imgui.Begin("Main Window", renderWindow)
            if imgui.InputInt(u8"##еууу", xz[1], 2) then
                xz[1][0] = xz[1][0] < 0 and 0 or
                    xz[0] > 10 and 10 or xz[1][0]
            end
        imgui.End()
    end
)


bad argument #2 to 'InputInt' (cannot convert 'table' to 'int *')
stack traceback:
[C]: in function 'InputInt'
C:\Games\GTA 140K BY DAPO SHOW\moonloader\lua — копия.lua:23: in function '_draw'
 

IlyaHL2

Известный
Автор темы
232
49
Статус
В этой теме нельзя размещать новые ответы.