Dialog style list
#1

///////////////////////////////////
Reply
#2

Try... not tested;
pawn Код:
if(strcmp(cmd, "/perekond", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        new
            number = 0,
            str[999];
        for(new i = 0; i < sizeof(FamilyInfo); i++) {
            format(asi, sizeof(asi), "{DBED15}Perekond: %d {FFFFFF}| {15D4ED}Nimi: %s {FFFFFF}| {8CED15}Liider: %s {FFFFFF}| {DB881A}Liikmed: %d",number,FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers]);
            number ++;
            strcat(str, asi, sizeof(str));
        }
        ShowPlayerDialog(playerid, DIALOOG_PEREKOND, DIALOG_STYLE_LIST, "Perekond", asi, "Vali", "Loobu");
    }
    return 1;
}
Reply
#3

/////////////////////////
Reply
#4

lol, woops... I forgot, I have changed it and give you the wrong one.
Try this; (still not tested...)
pawn Код:
if(strcmp(cmd, "/perekond", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        new
            number = 0,
            str[999];
        for(new i = 0; i < sizeof(FamilyInfo); i++) {
            format(asi, sizeof(asi), "{DBED15}Perekond: %d {FFFFFF}| {15D4ED}Nimi: %s {FFFFFF}| {8CED15}Liider: %s {FFFFFF}| {DB881A}Liikmed: %d",number,FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers]);
            number ++;
            strcat(str, asi, sizeof(str));
        }
        ShowPlayerDialog(playerid, DIALOOG_PEREKOND, DIALOG_STYLE_LIST, "Perekond", asi, "Vali", "Loobu");
    }
    return 1;
}
Reply
#5

///////////////////////////////
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)