Loops > select result - 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: Loops > select result (
/showthread.php?tid=603409)
Loops > select result -
Jack_Leslie - 23.03.2016
hi guys
just playing around with a loop
how would i select a certain result?
so looping through the data, if you get to the 3rd result, it selects that data, i'm using it with a list dialog, so it'd be like if result == listitem, what would the correct structure be?
or in other words
player selects listitem 2 out of 5 > loop through the data, it gets 5 matching results but selects the 2nd
thanks in advance
Re: Loops > select result -
Gammix - 23.03.2016
The content provided lacks explanation, i don't understand what you are asking here.
The only hint i am getting is from
listitem to which i assume you are referring to dialogs. Just store the listitem or the loop's index where you get result into a variable or PVar.