CLEO Help How to set dialog list item on a dialog with 2 columns

CLEO related
Status
Not open for further replies.

cheetahftw1

Active member
Joined
Aug 31, 2018
Messages
39
Reaction score
0
if SAMP.IsDialogActive(9)
then
wait 2000
0B49: samp set_current_dialog_list_item 11
0B47: samp close_current_dialog_with_button 1 // Select button
end

How I can set dialog list item to last one (11) on this type of dialog

-> Dialog
 
Last edited:

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
It might be 0B49: samp set_current_dialoy_list_item 10 because the list starts at 0. So 0 would be Cell Phone, 1 would be MP3 Player and so on.
 

JaggerJam

Active member
Joined
Sep 14, 2017
Messages
98
Solutions
1
Reaction score
21
You already have code
0B49: samp set_current_dialog_list_item 11

?
It might be 0B49: samp set_current_dialoy_list_item 10 because the list starts at 0. So 0 would be Cell Phone, 1 would be MP3 Player and so on.

The opcode 0b49: doesn't work on this type of dialog. Snippet:

:setDialogIndex
{
0ab1: call @setDialogIndex 1 _item 2
}
0BB0: samp 31@ = get_dialog_info_ptr
31@ += 0x20
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0
31@ += 0x143
0@ -= 1
0A8C: write_memory 31@ size 1 value 0@ virtual_protect 0
ret 0
 
Status
Not open for further replies.
Top