18.01.2011, 11:12
lol, woops... I forgot, I have changed it and give you the wrong one.
Try this; (still not tested...)
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;
}