19.08.2013, 12:09
Hello,
I've got some clan colors and I want to show who is the owner of them in a dialog replacing the '-'.
So basically if a clan owns the color, '-' will be replaced with gang name and the rest will be '-' if not owned. It doesn't work and sometimes it is showing me 'Unarmed'..
I've got some clan colors and I want to show who is the owner of them in a dialog replacing the '-'.
pawn Код:
new ColorsList[33][3][24] =
{
{1, "{FFFFFF}||", "-"},
{2, "{FFFFFF}||", "-"},
{3, "{FFFFFF}||", "-"},
{4, "{FFFFFF}IIIII", "-"},
{5, "{FFFFFF}IIIII", "-"},
{6, "{FFFFFF}IIIII", "-"},
{7, "{FFFFFF}IIIII", "-"},
{8, "{FFFFFF}IIIII", "-"},
{9, "{FFFFFF}IIIII", "-"},
{10, "{FFFFFF}IIIII", "-"},
{11, "{FFFFFF}IIIII", "-"},
{12, "{FFFFFF}IIIII", "-"},
{13, "{FFFFFF}IIIII", "-"},
{14, "{FFFFFF}IIIII", "-"},
{15, "{FFFFFF}IIIII", "-"},
{16, "{FFFFFF}IIIII", "-"},
{17, "{FFFFFF}IIIII", "-"},
{18, "{FFFFFF}IIIII", "-"},
{19, "{FFFFFF}IIIII", "-"},
{20, "{FFFFFF}IIIII", "-"},
{21, "{FFFFFF}IIIII", "-"},
{22, "{FFFFFF}IIIII", "-"},
{23, "{FFFFFF}IIIII", "-"},
{24, "{FFFFFF}IIIII", "-"},
{25, "{FFFFFF}IIIII", "-"},
{26, "{FFFFFF}IIIII", "-"},
{27, "{FFFFFF}IIIII", "-"},
{28, "{FFFFFF}IIIII", "-"},
{29, "{FFFFFF}IIIII", "-"},
{30, "{FFFFFF}IIIII", "-"},
{31, "{FFFFFF}IIIII", "-"},
{32, "{FFFFFF}IIIII", "-"},
{33, "{FFFFFF}IIIII", "-"}
};
for (new i = 0; i < sizeof(ColorsList); i++)
{
for (new clanid = 0; clanid < MAX_GANGS; clanid++)
{
if (gData[clanid][G_MEMBERS] != 0)
{
if (gData[clanid][G_COLOR] != -1)
{
ColorsList[gData[clanid][G_COLOR]][2] = gData[clanid][C_NAME];
}
else ColorsList[i][2] = "-";
}
}
format(string, sizeof (string), "%s\n%d\t%s\t\t{A9C4E4}%s", string, ColorsList[i][0], ColorsList[i][1], ColorsList[i][2]);
}*/
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT, "colors", string, "Select", "Close");