Listitem +rep
#1

Well,i have made a system for objects,simple one,and i made a command,when you write that command it shows you all of the objects thst have model 980 which is a gate model id,i looped the max objects and...it worked,but under OnPlayerDialogResponse,how can i detect which listitem he clicked on,like lets say i got object id 6 and 8 and 11 and 17 with model id 980, it will show me a dialog with these 4 object ids,but under ondialogresponse they wouldnt be id 6 and 8 and 11 and 17, they would be listitem 0-3, how can i detect if i clicked on object id 11 for example,please help guys
Reply
#2

the listitem ids correspond to the order in which the list is in.

"item 0\nitem 1\nitem 2\nitem 3"
item 0 = listitem 0
item 1 = listitem 1
...
Reply
#3

But i got around 1000 objects so lets say i have object id 11 and 16,how can i know if he selected 16?
Reply
#4

Maybe you could make that loop under on dialog repsonse then for each lisitem that will appear in the loop make it equal to lisitem
Reply
#5

use better DIALOG_STYLE_INPUT and enter object number
Reply
#6

didnt i told u how to see this in your last topic
see your last topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)