attempt to concatenate upvalue 'xb' (a boolean value)

IlyaHL2

Активный
Автор темы
231
49
Версия MoonLoader
.026-beta
Lua:
local xb = false
function main()
    repeat wait(0) until isSampAvailable()
        sampRegisterChatCommand("xz",function() sampShowDialog(123,"Okn",'text '..xb,"ok","not ok",2) end)
    while true do wait(0)
        while sampIsDialogActive(123) do wait(100) end
        local result, button, list, input = sampHasDialogRespond(123)
        if button == 1 then
            if list == 0 then
                xb = not xb
                sampShowDialog(123,"Okn","text "..xb,"ok","not ok",2)
            end
        end
    end
end