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.