D
Deleted member 52446
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. =(
I wanna get all columns of selected Index...
Server Version : 0.3.7-R2
This code takes only the first column. =(
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
Last edited: