Getting all members of club in a dialog problem
#6

Okay i got this now:
pawn Код:
forward ClubMemberList(playerid);
public ClubMemberList(playerid)
{
    new rows, fields, string[1000], pName[MAX_PLAYER_NAME];
    cache_get_data(rows, fields, Handle);
    for(new i; i < Max_ClubMembers; i++)
    {
        cache_get_row( i, 0, pName, Handle, 32 );
        format(string, sizeof(string), "%s%s\n", string, pName);
    }
    ShowPlayerDialog(playerid, DialogClubMembers, DIALOG_STYLE_LIST, "Club members", string, "Ok", "Cancel");
    return 1;
}
But this shows 100 lines. It does give the right names of people in the club but there are only two members. After that every row shows NULL. How to break the loop when no data is found anymore?
Reply


Messages In This Thread
Getting all members of club in a dialog problem - by thimo - 31.01.2014, 06:24
Respuesta: Getting all members of club in a dialog problem - by Zume - 31.01.2014, 06:38
Re: Getting all members of club in a dialog problem - by thimo - 31.01.2014, 06:42
Respuesta: Re: Getting all members of club in a dialog problem - by Zume - 31.01.2014, 06:53
Re: Getting all members of club in a dialog problem - by thimo - 31.01.2014, 06:58
Re: Getting all members of club in a dialog problem - by thimo - 31.01.2014, 14:18

Forum Jump:


Users browsing this thread: 2 Guest(s)