Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
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
Posts: 76
Threads: 6
Joined: Oct 2013
Reputation:
0
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
...
Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
But i got around 1000 objects so lets say i have object id 11 and 16,how can i know if he selected 16?
Posts: 805
Threads: 75
Joined: Aug 2013
Reputation:
0
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
Posts: 74
Threads: 12
Joined: Dec 2011
Reputation:
0
use better DIALOG_STYLE_INPUT and enter object number