[HELP REQUEST] ShowPlayerDialog (list)
#8

Quote:
Originally Posted by PotH3Ad
Посмотреть сообщение
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.
Can you make your code compatible with mine? I tried with no success.
I mean that I got 3 items that I need to get from a file.

item 1: DOF2_GetString(User, "item1", "ITEMS");
item 2: DOF2_GetString(User, "item2", "ITEMS");
item 3: DOF2_GetString(User, "item3", "ITEMS");

Thanks (!)

EliranPesahov - Your code returns an empty list. thanks anyway.
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: 3 Guest(s)