DIALOG is showing ONE result.
#2

Because it's in a loop. Because of that the dialog is shown for each iteration, BUT as they're very fast and SA:MP only allows one dialog to be open you will probably only see the last one.

pawn Code:
for(new i = 0; i < MAX_FACTIONS; i++)
    {
        if(GroupInfo[i][gActive] == 1)
        {
            format(szDialog, sizeof(szDialog), "%sName: %s - Type: %i - ID: %i",szDialog, GroupInfo[i][gName], GroupInfo[i][gType], GroupInfo[i][gGroupID]-1);
         
        }
    }
    ShowPlayerDialog(playerid, EDITFACTION_LISTFACS, DIALOG_STYLE_LIST, "List of Factions", szDialog, "Select", "Close");
Reply


Messages In This Thread
DIALOG is showing ONE result. - by MillenniumG - 05.10.2014, 15:16
Re: DIALOG is showing ONE result. - by dusk - 05.10.2014, 16:13
Re: DIALOG is showing ONE result. - by MillenniumG - 06.10.2014, 08:21
Re: DIALOG is showing ONE result. - by MillenniumG - 07.10.2014, 20:05

Forum Jump:


Users browsing this thread: 3 Guest(s)