Code:
:money
0B35: samp 1@ = get_last_command_params
if
0AD4: 1@ = scan_string 1@ format "%d" 2@
then
IF 2@ < 100000
then
chatmsg "Value must be above 100000" -1
else
0AF8: "money value: %d" -1 2@
0AF1: write_int 2@ to_ini_file "cleo\bla.ini" section "blabla" key "money"
end
end
0b43:
Code:
while true
wait 0
IF 0B4C: samp is_dialog_active -1
then
0AC8: 1@ = allocate_memory_size 260
0BD8: samp get_dialog_caption 1@ /// Get dialot caption
0AF0: 3@ = get_int_from_ini_file "cleo\bla.ini" section "blabla" key "money"
IF 0C29: $NOT_USED = stristr string1 1@ string2 "Enter amount"
THEN
repeat
wait 0
until 0B4C: samp is_dialog_active -1
IF 0b4c: samp is_dialog_active -1
then
wait 200
alloc 4@ 240
format 4@ "%d" 3@
0AF8: "editbox %d" -1 4@
0B4B: samp set_current_dialog_editbox_text 4@
wait 100
0AB1: @CloseCurrentDialogWithButton 1 Button 1
free 1@
end
end
end
end
instead of getting the value with 0AF0: 3@ = get_int_from_ini_file "cleo\bla.ini" section "blabla" key "money" how can i put in the editbox the value what i set?