{$CLEO .cs}
0000: NOP
:PEPE_255
wait 0
if
0B4C: samp is_dialog_active -1
else_jump @PEPE_255
0AC8: 1@ = allocate_memory_size 260
0B4A: samp 1@ = get_current_dialog_editbox_text
0AF5: write_string 1@ to_ini_file "cleo\text.ini" section "dialog" key "text"
goto @PEPE_255
that shit don't work for me.pepeelpubero link said:Try with this, it should work.
Code:{$CLEO .cs} 0000: NOP :PEPE_255 wait 0 if 0B4C: samp is_dialog_active -1 else_jump @PEPE_255 0AC8: 1@ = allocate_memory_size 260 0B4A: samp 1@ = get_current_dialog_editbox_text 0AF5: write_string 1@ to_ini_file "cleo\text.ini" section "dialog" key "text" goto @PEPE_255
{$CLEO .cs}
0000: NOP
:PEPE_255
wait 0
/* ONLY FOR DIALOG_STYLE_INPUT:
0B4D: samp 1@ = get_current_dialog_type
if
1@ == 1 // DIALOG INPUT
*/
if
0B4C: samp is_dialog_active -1
else_jump @PEPE_255
2@ = 1
0AD3: 28@v = format "%d" 2@
0B4A: samp 1@v = get_current_dialog_editbox_text
0AF5: write_string 1@v to_ini_file "cleo\text.ini" section 28@v key "text"
goto @PEPE_255
{$CLEO}
0000:
repeat
wait 0
until 0AFA:
0A9A: 31@ = openfile "CLEO\text.txt" mode "at+"
0AC8: 1@ = 260
while true
wait 0
if 0B4C: samp is_dialog_active -1
then
0B4A: samp 1@ = get_current_dialog_editbox_text
0C17: 2@ = strlen 1@
if 2@ >= 1
then 0AD8: write_string_to_file 31@ from 1@
end
end
end
1. Create dialog with style DIALOG_STYLE_INPUTEvangelical link said:dont know what ?
and when i create the dialog, how can i do this?Opcode.eXe link said:Create a dialog with:
0B80: 0@ = create_dialog "{EECC00}Dialog titleD"
0B86: dialog 0@ set_visible FALSE
0B9F: dialog 0@ enable_caption TRUE
0BA1: dialog 0@ set_minimized FALSE
0B84: dialog 0@ set_pos_XY 0 0 size 200 350
0B93: dialog 0@ set_background_color 0xC8000000
0B83: dialog 0@ add_checkbox id 1 text "YU GAY?" pos_XY 160 0 size 20 20
0B88: dialog 0@ add_editbox id 2 text "type text here" pos_XY 0 50 size 200 20
0B82: dialog 0@ add_button id 3 text "CLOSE" pos_XY 0 60 200 12
use dialog opcodes
Hidend link said:3. When you put text inside the dialog, and press enter or OK button, send what i put in the dialog to a txt/ini file
{$VERSION 3.1.0000}
{$CLEO .cs}
0000:
IALOG
repeat
wait 0
until 0AFA:
0A9A: 31@ = openfile "CLEO\text.txt" mode "at+"
wait 0 ms
if
0AB0: 49 // activation key
jf @DIALOG
0B3B: samp show_dialog id 2 caption "DIALOG" text "Ammo" button_1 "Ok" button_2 "" style 1
0AC8: 3@ = allocate_memory_size 128
jump @Ammo
:Ammo
wait 0 ms
if
0B3C: samp dialog_respond 0@ button 1@ list_item 2@ input_text 3@
jf @Repeat
if
0@ == 2
jf @Repeat
if
1@ == 1
jf @END
0AD8: write_string_to_file 31@ from 3@
0AC9: free_allocated_memory 3@
jump @DIALOG
:END
if
1@ == 2
jf @Repeat
jump @DIALOG
:Repeat
jump @Ammo
to0AD8: write_string_to_file 31@ from 3@
0B4A: samp 21@ = get_current_dialog_editbox_text
Hidend link said:Maybe someone can help?
[member=26707]HenryTeylor[/member] I saw you making some things with dialogs, maybe you know![]()
I think is simple for people know this...HenryTeylor link said:What should the script?