20.03.2019, 15:20
Estou tentando converter o comando /infolider para dialog, mais estб ocorrendo um problema, quando chega no final ele repete e acaba bugando. no caso comeзa os oficiais da justiзa novamente, alguem pode ajudar ? pesquisei na wiki e nenhum resultado.
pawn Code:
if(strcmp(cmd, "/comandofdp", true) ==0 || strcmp(cmd, "/infolideres", true) ==0)
{
format(DialogDiDi, sizeof(DialogDiDi),"%s ______Oficiais da Justiзa______\n\n",DialogDiDi);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Governo: {0099ff}%s \n",DialogDiDi, InfoOrg[7][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Mйdicos: {aa3333}%s \n",DialogDiDi, InfoOrg[4][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Policia Militar: {828282}%s \n",DialogDiDi, InfoOrg[1][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Policia Cнvil: {828282}%s \n",DialogDiDi, InfoOrg[17][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Policia Federal: {828282}%s \n",DialogDiDi, InfoOrg[25][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}BOPE: {828282}%s \n",DialogDiDi, InfoOrg[2][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}GATE: {828282}%s \n",DialogDiDi, InfoOrg[13][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Interpol: {828282}%s \n",DialogDiDi, InfoOrg[12][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Exercito: {828282}%s \n\n",DialogDiDi, InfoOrg[3][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s ___________Gangsters___________\n\n",DialogDiDi);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Los Aztecas: {828282}%s \n",DialogDiDi, InfoOrg[5][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Los Vagos: {828282}%s \n",DialogDiDi, InfoOrg[19][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}PCC: {828282}%s \n",DialogDiDi, InfoOrg[11][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Ballas: {828282}%s \n",DialogDiDi, InfoOrg[18][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Groove Street: {828282}%s \n",DialogDiDi, InfoOrg[15][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Comando Vermelho: {828282}%s \n",DialogDiDi, InfoOrg[23][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Marombas: {828282}%s \n\n",DialogDiDi, InfoOrg[27][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s ___________Mafiosos___________\n\n",DialogDiDi);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Mбfia Yakuza: {828282}%s \n",DialogDiDi, InfoOrg[20][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Mбfia Cosa Nostra: {828282}%s \n",DialogDiDi, InfoOrg[22][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Mбfia Russa: {828282}%s \n\n",DialogDiDi, InfoOrg[28][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s ___________Terroristas___________\n\n",DialogDiDi);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Taliban: {828282}%s \n",DialogDiDi, InfoOrg[6][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Al'qaeda: {828282}%s \n",DialogDiDi, InfoOrg[16][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Hamas: {828282}%s \n\n",DialogDiDi, InfoOrg[30][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s ___________Mercenбrios___________\n\n",DialogDiDi);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Sons of Anarchy: {828282}%s \n",DialogDiDi, InfoOrg[21][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Mayans: {828282}%s \n\n",DialogDiDi, InfoOrg[24][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s ___________Outras Orgs___________\n\n",DialogDiDi);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Hitmans: {828282}%s \n",DialogDiDi, InfoOrg[8][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Assassins: {828282}%s \n",DialogDiDi, InfoOrg[26][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Rede Globo: {828282}%s \n",DialogDiDi, InfoOrg[9][Lider]);
format(DialogDiDi, sizeof(DialogDiDi),"%s {FF8C00}Mecвnicos: {828282}%s \n",DialogDiDi, InfoOrg[14][Lider]);
ShowPlayerDialog(playerid, 1500, DIALOG_STYLE_MSGBOX, "{00FF00} Sexy{FFFF00} Machine{0244ff} Gun{FFFFFF} - Lнderes", DialogDiDi, "Fechar", "");
return 1;
}