Баг с диалогом

RICJS29_JSJA

Участник
Автор темы
101
4
Версия MoonLoader
.026-beta
Нужно чтобы когда нажимал "Назад" закрыло диалог и открыло меню, а оно закрываеться тупо
Lua:
local current_dialog = sampHasDialogRespond()
local result, button, list, input = sampHasDialogRespond(current_dialog)
    if current_dialog == 10 then
        if result then
        elseif button == 0 and list == 0 then
            sampShowDialog(10, '                       Driving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 1 then
            sampShowDialog(10, '                       Driving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 2 then
            sampShowDialog(10, '                       Driving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 3 then
            sampShowDialog(10, '                       Driving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        end
    end
 

Anti...

Активный
270
32
Хз попробуй так, не тестил
Lua:
local current_dialog = sampHasDialogRespond()
local result, button, list, input = sampHasDialogRespond(current_dialog)
if result then
    if current_dialog == 10 then
        if button == 0 and list == 0 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 1 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 2 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 3 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        end
    end
end
sampCloseCurrentDialogWithButton(int button)
Закрывает открытый диалог с указанием нажатой кнопки.
 
Последнее редактирование:

RICJS29_JSJA

Участник
Автор темы
101
4
Хз попробуй так, не тестил
Lua:
local current_dialog = sampHasDialogRespond()
local result, button, list, input = sampHasDialogRespond(current_dialog)
if result then
    if current_dialog == 10 then
        if button == 0 and list == 0 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 1 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 2 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        elseif button == 0 and list == 3 then
            sampShowDialog(10, '/t/t/tDriving Shool Helper | Подробней о скрипте', DSH_OScripte, 'Назад', 'Закрыть', 5)
        end
    end
end
sampCloseCurrentDialogWithButton(int button)
Закрывает открытый диалог с указанием нажатой кнопки.
не работает почему то(