CLEO Help Get selected index string Dialog List

  • Thread starter Deleted member 50567
  • Start date
CLEO related
Status
Not open for further replies.
D

Deleted member 50567

Guest
How to get the text of selected item in a dialog list and show it in a chatmsg?
I wanna get all columns of selected Index...
Server Version : 0.3.7-R2
This code takes only the first column. =(

Yes, i am using sampfuncs
PHP:
{$CLEO .cs}

0000: NOP

wait 10000 // wait until samp is ready

6@ = 0
while true
wait 0
if key_down 45
then
6@ = 1
end
if 6@ == 1
then
6@ = 0
wait 1000
0B54: samp 1@ = listbox_items_count
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
end
end
 

Attachments

  • Capturar.JPG
    Capturar.JPG
    33.1 KB · Views: 5
Status
Not open for further replies.
Top