- 15
- 2
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
- Версия SA-MP
-
- 0.3.7 (R1)
- 0.3.7-R2
- 0.3.7-R3
- 0.3.7-R4
Вообщем, нужно сделать код подтверждения скрипта при первой активации, код вводится в диалог в виде пароля, но при попытке использовать введенный текст в input, ничего не выходит, помогите, как правильно сделать, в сообщении также текст введенный не выводится.
чо:
if isKeyJustPressed(VK_B) and not mozno and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then
sampShowDialog(1, "{ff0000}Введите код подтверждения", "Введите текст", "ОК", "", DIALOG_STYLE_PASSWORD)
while sampIsDialogActive(1) do wait(100) end
local result, button, _, input = sampHasDialogRespond(1)
sampAddChatMessage(string.format("вы ввели "..input, 0x40FF40))
if input == 615710 then
mozno = true
end
end
if isKeyJustPressed(VK_B) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() and mozno then
main_window_state = not main_window_state
end
imgui.Process = main_window_state
end
end
Последнее редактирование: