[Ajuda] ShowPlayerDialog
#1

Alguйm pode me informar oque hб de errado neste cуdigo? pois ele nгo mostra nada quando digita o comando e assim eu passando raiva!

pawn Код:
if (strcmp(cmd, "/territorios", true) == 0)
    {
        if (IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11 || PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
            {
                new InfoOrgThiago[1500];
                if (Cargueirodono == 0)
                {
                    format(string, 70, "{FFFFFF}Navio cargueiro: Marinha\n");
                    strcat(InfoOrgThiago, string);
                }
                if (Cargueirodono == 1)
                {
                    format(string, 70, "{FFFFFF}Navio cargueiro: Piratas\n");
                    strcat(InfoOrgThiago, string);
                }
                if (QuebradosDono == 0)
                {
                    format(string, 70, "{FFFFFF}El Quebrados: Exйrcito\n");
                    strcat(InfoOrgThiago, string);
                }
                if (QuebradosDono == 1)
                {
                    format(string, 70, "{FFFFFF}El Quebrados: GRI\n");
                    strcat(InfoOrgThiago, string);
                }
                if (AngelPineDono == 0)
                {
                    format(string, 70, "{FFFFFF}Angel Pine: Sem dominio\n");
                    strcat(InfoOrgThiago, string);
                }
                if (AngelPineDono == 1)
                {
                    format(string, 70, "{FFFFFF}Angel Pine: Marinha\n");
                    strcat(InfoOrgThiago, string);
                }
                if (AngelPineDono == 2)
                {
                    format(string, 70, "{FFFFFF}Angel Pine: Piratas\n");
                    strcat(InfoOrgThiago, string);
                }
                ShowPlayerDialog(playerid, DIALOG0, DIALOG_STYLE_LIST, "Territуrios", InfoOrgThiago, "Fechar", "");
            }
            if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10
                || PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12 || PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15|| PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
            {
                new InfoOrgThiago[1500];
                if (gzmorrodono == 0)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Sem dominio\n");
                    strcat(InfoOrgThiago, string);
                }
                if (gzmorrodono == 1)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Los Aztecas\n");
                    strcat(InfoOrgThiago, string);
                }
                if (gzmorrodono == 2)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Grove Street\n");
                    strcat(InfoOrgThiago, string);
                }
                if (gzmorrodono == 3)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Front Yard Ballas\n");
                    strcat(InfoOrgThiago, string);
                }
                if (gzmorrodono == 4)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Los Santos Vagos\n");
                    strcat(InfoOrgThiago, string);
                }
                if (gzmorrodono == 5)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Polнcia Militar LV\n");
                    strcat(InfoOrgThiago, string);
                }
                if (gzmorrodono == 6)
                {
                    format(string, 70, "{FFFFFF}Las Colinas: Polнcia Civil\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 0)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Sem dominio\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 1)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Los Aztecas\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 2)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Grove Street\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 3)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Front Yard Ballas\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 4)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Los Santos Vagos\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 5)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Polнcia Militar LV\n");
                    strcat(InfoOrgThiago, string);
                }
                if (GZIdlewooddono == 6)
                {
                    format(string, 70, "{FFFFFF}Idlewood: Polнcia Civil\n");
                    strcat(InfoOrgThiago, string);
                }
                ShowPlayerDialog(playerid, DIALOG0, DIALOG_STYLE_LIST, "Territуrios", InfoOrgThiago, "Fechar", "");
            }
        }
        return 1;
    }
Reply
#2

Faзa um debug pelo cуdigo e assim saberбs o que hб de errado...veja um exemplo:

pawn Код:
CMD:meu_cmd(playerid)
{
    print("Debug 01");

    if(var[playerid])
    {
        print("Debug 02");
    }
    if(var2[playerid])
    {
        print("Debug 03");
    }
    return true;
}
Reply
#3

Alguem ? '.'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)