Dialog style list
#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


Messages In This Thread
Dialog style list - by Typhome - 18.01.2011, 10:01
Re: Dialog style list - by Toreno - 18.01.2011, 10:59
Re: Dialog style list - by Typhome - 18.01.2011, 11:04
Re: Dialog style list - by Toreno - 18.01.2011, 11:12
Re: Dialog style list - by Typhome - 18.01.2011, 11:29

Forum Jump:


Users browsing this thread: 1 Guest(s)