Looping in a dialog - 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 in a dialog (
/showthread.php?tid=520986)
Looping in a dialog -
iBots - 21.06.2014
Hey guys,i got a system ,families system,just simple one like GF's one,i want to make it in a dialog and shows the name of the family,my question is:
How can i list in the dialog the families that are owned?like only if a family is owned it gets listed,how should my ShowPlayerDialog be...please help
for checking if family is used,i use fTaken
like
pawn Код:
if(fInfo[familyid][fTaken] == 1) // it's taken
Re : Looping in a dialog -
S4t3K - 21.06.2014
Well, use "strcat" (or "format") : take the name of the family and put it inside a "large" string.
Then, when your loop is over, simply use "ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_ASYOUWANT, "Owned families", your_large_string, "Ok", "");"