[HELP REQUEST] ShowPlayerDialog (list)
#7

This is the way I do it, might be helpful.

pawn Код:
format(diagstr, sizeof(diagstr), "ID\tDuel Name\n");
                    for(new x=0; x<MAX_DUELS; x++)
                    {
                        format(dFile, sizeof(dFile), DUELFILES, x);
                        if(strlen(dini_Get(dFile, "duelName")) > 0) format(diagstr, sizeof(diagstr), "%s%d\t%s\n", diagstr, x, dini_Get(dFile, "duelName"));
                        else format(diagstr, sizeof(diagstr), "%s%d\tEmpty Slot\n", diagstr, x);
                    }
                    ShowPlayerDialog(playerid, DUELDIAG+2, DIALOG_STYLE_LIST, "Duel List", diagstr, "Select", "Exit");
It formats the string until the loop is over, then it shows the resulting string.
Reply


Messages In This Thread
[HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 11.07.2011, 23:41
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Rickye - 12.07.2011, 06:07
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 12.07.2011, 07:44
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Toreno - 12.07.2011, 07:50
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 12.07.2011, 08:26
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Toreno - 12.07.2011, 08:43
Re: [HELP REQUEST] ShowPlayerDialog (list) - by PotH3Ad - 12.07.2011, 09:03
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 12.07.2011, 09:43
Re: [HELP REQUEST] ShowPlayerDialog (list) - by PotH3Ad - 12.07.2011, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)