Help for style input box

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

Allex994

Новичок
Автор темы
13
0
Hello, I have problem i use DIALOG_STYLE_INPUT.
When start DIALOG_STYLE_INPUT first time text is bad.
When start second time string load last TEXT and this text is good but old!
How to always input current text which i enter.
I need this because that command gives me an /ad on server.
Sorry i don't know Russian language <3 :(

Код:
       :Auto_AD_Komanda_Input
       wait 0      
       0AC8: 22@ = allocate_memory_size 145
       0B3B: samp show_dialog id 46 caption "{25A30B}AD" text "Enter text ad:" button_1 "Next" button_2 "Exit" style DIALOG_STYLE_INPUT
       if 0B3C: samp is_dialog_responded id 46 button 1@ list_item 0 input_text 22@
       wait 5000
       0AF9: samp say_msg "smsad %s" 22@
       //0AC9: free_allocated_memory 22@
       jump @AutoCMDSyS_Pokrenuti_1


xFVeXJe.png
 

itsLegend

Фонд борьбы за жуков 🐞
Администратор
2,695
1,446
CLEO:
       :Auto_AD_Komanda_Input
       wait 0    
       0AC8: 22@ = allocate_memory_size 145
       0B3B: samp show_dialog id 46 caption "{25A30B}AD" text "Enter text ad:" button_1 "Next" button_2 "Exit" style DIALOG_STYLE_INPUT
       repeat
           wait 0
       until 0B3C: samp is_dialog_responded id 46 button 1@ list_item 0 input_text 22@

       wait 5000
       0AF9: samp say_msg "smsad %s" 22@
       0AC9: free_allocated_memory 22@
       jump @AutoCMDSyS_Pokrenuti
 

Allex994

Новичок
Автор темы
13
0
CLEO:
       :Auto_AD_Komanda_Input
       wait 0   
       0AC8: 22@ = allocate_memory_size 145
       0B3B: samp show_dialog id 46 caption "{25A30B}AD" text "Enter text ad:" button_1 "Next" button_2 "Exit" style DIALOG_STYLE_INPUT
       repeat
           wait 0
       until 0B3C: samp is_dialog_responded id 46 button 1@ list_item 0 input_text 22@

       wait 5000
       0AF9: samp say_msg "smsad %s" 22@
       0AC9: free_allocated_memory 22@
       jump @AutoCMDSyS_Pokrenuti

Pffffff thanks legend2360 you are saved my life!
 
Статус
В этой теме нельзя размещать новые ответы.