SA-MP Forums Archive
Looping tru listitem? - 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: Looping tru listitem? (/showthread.php?tid=613652)



Looping tru listitem? - czop1223 - 30.07.2016

Hello, I am having a small concern about listitem. First off, I'm loading something to the DIALOG_STYLE_TABLIST, from MySQL (the weapons that the character carries), and there are sometimes 2 weapons and sometimes 5. They all show up good on the list, but how do I use the "listitem" parameter without knowing how much things do I have in the list, as the number changes practically everytime. Can I somehow loop through listitem?