SA-MP Forums Archive
Listitem +rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Listitem +rep (/showthread.php?tid=525449)



Listitem +rep - iBots - 12.07.2014

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


Re: Listitem +rep - DeStunter - 12.07.2014

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
...


Re: Listitem +rep - iBots - 12.07.2014

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


Re: Listitem +rep - Battlezone - 12.07.2014

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


Respuesta: Listitem +rep - angelxeneize - 12.07.2014

use better DIALOG_STYLE_INPUT and enter object number


Re: Listitem +rep - BroZeus - 12.07.2014

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