Dialog checker

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

SanGiovanni

Новичок
Автор темы
25
0
I have made this dialog
Код:
0B3B: samp show_dialog id 58 caption "aaaaaaaaaa" text "bbbbbbbbbbbb" button_1 "OK" button_2 "NO" style DIALOG_STYLE_INPUT
How can I check when the dialog is closed?
Код:
0B3B: samp show_dialog id 58 caption "aaaaaaaaaa" text "bbbbbbbbbbbb" button_1 "OK" button_2 "NO" style DIALOG_STYLE_INPUTwhile true
while true
wait 0
0B81: dialog 58 pop_event_to 2@ control_id_to 3@
    if
        2@ == 0x101
 
    then
        0AF8: samp add_message_to_chat "premuto" 5@
   
    end
end
I tried this, but it crashes.
 

itsLegend

Фонд борьбы за жуков 🐞
Администратор
2,696
1,463
0B81 opcode for DXTU Dialogs(SAMPFUNCS).
Use 0B3C: samp is_dialog_responded id 58 button 1@ list_item 2@ input_text 3@
For 3@ allocate memory, if not it use change 3@ on 0.

Май инглиш из бест ин зе ворлд0)
 
  • Нравится
Реакции: [YouTube] Sergio Persson
Статус
В этой теме нельзя размещать новые ответы.