15.06.2015, 22:38
pawn Код:
stock DialogParticules(playerid)
{
new
string[64],
string2[sizeof(string) * sizeof(pInfo) + 1];
for(new i = 0; i < sizeof(pInfo); i++)
{
switch(i)
{
case FIN_CHAPEAU_TETE, FIN_MAINS, FIN_FAMILIER: continue;
case TITRE_CHAPEAU_TETE, TITRE_MAINS, TITRE_FAMILIER: format(string, sizeof(string), "%s\n", string_particules[i]);
default: format(string, sizeof(string), "%s : %s\n", string_particules[i], activate[pInfo[playerid][pInfo_:i]]);
}
print(string);
strcat(string2, string);
print(string2);
}
print(string2); // How is it going to print string2? You only have it returning something under your for.
return Dialog_Show(playerid, DialogParticules, DIALOG_STYLE_LIST, "Particules & Accessoires", string2, "Ok", "Fermer");
}