CLEO Help Dialog

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
How i can detect this dialog text form dialog list item?
http://i.imgur.com/EiTTb0d.png
0BD7:  don't work...

I want get dialog text in 0AF8: and then do checks with 0C29:

@monday
@springfield
@supahdupahnubah
@Opcode.eXe
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
[shcode=cpp]

//get number of dialog elements
0B54: samp 1@ = listbox_items_count

//substract one from total cout
1@ -= 1 //last item is actually the null terminator

chatmsg "num of elements %d" -1 1@

for 0@ = 0 to 1@
alloc 2@ = 256
0B5B: samp get_listbox_item 0@ text_to 2@      
chatmsg "element %d - text: %s" -1 0@ 2@
free 2@
end
[/shcode]
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
springfield said:
[shcode=cpp]

//get number of dialog elements
0B54: samp 1@ = listbox_items_count

//substract one from total cout
1@ -= 1 //last item is actually the null terminator

chatmsg "num of elements %d" -1 1@

for 0@ = 0 to 1@
alloc 2@ = 256
0B5B: samp get_listbox_item 0@ text_to 2@      
chatmsg "element %d - text: %s" -1 0@ 2@
free 2@
end
[/shcode]

Thanks.
 
Status
Not open for further replies.
Top