[Ajuda] erros array e warnning
#1

pawn Код:
\pawno\include\SpikeStrip.inc(19) : warning 217: loose indentation
\pawno\include\SpikeStrip.inc(29) : warning 217: loose indentation
\include\SpikeStrip.inc(32) : warning 217: loose indentation
pawno\include\SpikeStrip.inc(38) : warning 217: loose indentation
\gamemodes\bh.pwn(22599) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(22689) : error 047: array sizes do not match, or destination array is too small
gamemodes\bh.pwn(22813) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(23028) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(23053) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(23061) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(23116) : error 047: array sizes do not match, or destination array is too small
gamemodes\bh.pwn(23167) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(23205) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26756) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26760) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26827) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26834) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26935) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26962) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(26985) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27026) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27058) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27109) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27153) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27259) : error 047: array sizes do not match, or destination array is too small
1\gamemodes\bh.pwn(27265) : error 047: array sizes do not match, or destination array is too small
\gamemodes\b.pwn(27343) : error 047: array sizes do not match, or destination array is too small
1\gamemodes\bh.pwn(27349) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27455) : error 047: array sizes do not match, or destination array is too small
\gamemodes\bh.pwn(27538) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664

vo posta so algumas linhas
linha : 22599
pawn Код:
tmp = strtok(text, idx);
        if((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")) || (strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")) || (strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
        {
            if(CPorder[playerid] == 1)
            {
                if((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
                {
                    Acertos[playerid]++;
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "O que й preciso para pescar? (Responda, 'A','B' ou 'C')");
                    SendClientMessage(playerid, COLOR_WHITE, "A) Usar o comando /pescar no pier de Los Santos ou em barcos.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Roubar um barco das Forcas Armadas.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Estar longe da polнcia.");
                    PlayerPlaySound(playerid,1057,X,Y,Z);
                }
                else
                {
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Qual a punicгo para quem pesca ilegalmente? (Responda, 'A','B' ou 'C')");
                    SendClientMessage(playerid, COLOR_WHITE, "A) Prisгo.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Morte.");
                    PlayerPlaySound(playerid,1052,X,Y,Z);
                }
                return 0;
            }
            if(CPorder[playerid] == 2)
            {
                if((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
                {
                    Acertos[playerid]++;
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "O que acontece se vocк for pego por estar pescando sem licenзa?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) Prisгo.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Apreencгo da carteira nбutica.");
                    PlayerPlaySound(playerid,1057,X,Y,Z);
                }
                else
                {
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "O que acontece se vocк for pego por estar pescando sem licenзa?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) Prisгo.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Apreencгo da carteira nбutica.");
                    PlayerPlaySound(playerid,1052,X,Y,Z);
                }
                return 0;
            }
linha : 22689
pawn Код:
tmp = strtok(text, idx);
        if((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")) || (strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")) || (strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
        {
            if(CPorder[playerid] == 1)
            {
                if((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
                {
                    Acertos[playerid]++;
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Aonde й possнvel comprar armas legalmente?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) Ammu nation.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Vendedor de armas.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Loja de armas.");
                    PlayerPlaySound(playerid,1057,X,Y,Z);
                }
                else
                {
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Aonde й possнvel comprar armas legalmente?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) Ammu nation.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Vendedor de armas.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Loja de armas.");
                    PlayerPlaySound(playerid,1052,X,Y,Z);
                }
                return 0;
            }
            if(CPorder[playerid] == 2)
            {
                if((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
                {
                    Acertos[playerid]++;
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Qual punicгo para quem vende armas ilegais?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) R$500 de multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Prisгo de 10minutos.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Prisгo de 5 minutos.");
                    PlayerPlaySound(playerid,1057,X,Y,Z);
                }
                else
                {
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Qual punicгo para quem vende armas ilegais?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) R$500 de multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) Prisгo de 10 minutos.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) Prisгo de 5 minutos.");
                    PlayerPlaySound(playerid,1052,X,Y,Z);
                }
                return 0;
            }
            if(CPorder[playerid] == 3)
            {
                if((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")))
                {
                    Acertos[playerid]++;
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Qual a multa para quem tem armas sem licenзa?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) R$50 de multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) R$100 de multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) R$200 de multa.");
                    PlayerPlaySound(playerid,1057,X,Y,Z);
                }
                else
                {
                    CPorder[playerid]++;
                    SendClientMessage(playerid, COLOR_GREEN, "Responda com 'A','B' ou 'C', boa sorte.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Qual a multa para quem tem armas sem licenзa?");
                    SendClientMessage(playerid, COLOR_WHITE, "A) R$50 de multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "B) R$100 de multa.");
                    SendClientMessage(playerid, COLOR_WHITE, "C) R$200 de multa.");
                    PlayerPlaySound(playerid,1052,X,Y,Z);
                }
                return 0;
            }
linha : 22813
pawn Код:
tmp = strtok(text, idx);
        if((strcmp("sim", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("sim")))
        {
            if(GotProposedBy[playerid] < 999)
            {
                if(IsPlayerConnected(GotProposedBy[playerid]))
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
                    format(string, sizeof(string), "Padre: %s vocк aceita %s como sua amada esposa? (digite 'sim', caso contrбrio vocк cancelarб o casamento).", giveplayer,sendername);
                    SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
                    MarriageCeremoney[GotProposedBy[playerid]] = 1;
                    MarriageCeremoney[playerid] = 0;
                    GotProposedBy[playerid] = 999;
                    return 1;
                }
                else
                {
                    MarriageCeremoney[playerid] = 0;
                    GotProposedBy[playerid] = 999;
                    return 0;
                }
            }
            else if(ProposedTo[playerid] < 999)
            {
                if(IsPlayerConnected(ProposedTo[playerid]))
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
                    if(Player[playerid][pSex] == 1 && Player[ProposedTo[playerid]][pSex] == 2)
                    {
                        format(string, sizeof(string), "Padre: %s e %s eu vуs os declaro Marido e Mulher, pode beijar a noiva.", sendername, giveplayer);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "Padre: %s e %s eu vуs os declaro Marido e Mulher, pode beijar o noivo.", giveplayer, sendername);
                        SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
                        format(string, sizeof(string), "Notнcias de casamento: Nуs temos um novo casal, %s & %s acabam de se casar.", sendername, giveplayer);
                        OOCNews(COLOR_WHITE, string);
                    }
                    else if(Player[playerid][pSex] == 1 && Player[ProposedTo[playerid]][pSex] == 1)
                    {
                        format(string, sizeof(string), "Padre: %s e %s eu vуs os declaro Marido... e Marido, pode beijar o noivo.", sendername, giveplayer);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "Padre: %s e %s eu vуs os declaro Marido... e Marido, pode beijar o noivo.", giveplayer, sendername);
                        SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
                        format(string, sizeof(string), "Notнcias de casamento: Nуs temos um novo casal gay, %s & %s acabam de se casar.", sendername, giveplayer);
                        OOCNews(COLOR_WHITE, string);
                    }
                    else if(Player[playerid][pSex] == 2 && Player[ProposedTo[playerid]][pSex] == 2)
                    {
                        format(string, sizeof(string), "Padre: %s e %s eu vуs os declaro Mulher e Mulher, pode beijar a noiva.", sendername, giveplayer);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "Padre: %s e %s eu vуs os declaro Mulher e Mulher, pode beijar a noiva.", giveplayer, sendername);
                        SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
                        format(string, sizeof(string), "Notнcias de casamento: Nуs temos um novo casal lйsbico, %s & %s acabam de se casar.", sendername, giveplayer);
                        OOCNews(COLOR_WHITE, string);
                    }
                    MarriageCeremoney[ProposedTo[playerid]] = 0;
                    MarriageCeremoney[playerid] = 0;
                    format(string, sizeof(string), "%s", sendername);
                    strmid(pMarriedTo[ProposedTo[playerid]], string, 0, strlen(string), 255);
                    format(string, sizeof(string), "%s", giveplayer);
                    strmid(pMarriedTo[playerid], string, 0, strlen(string), 255);
                    GivePlayerGP(playerid, - 10000);
                    Player[playerid][pMarried] = 1;
                    Player[ProposedTo[playerid]][pMarried] = 1;
                    Player[ProposedTo[playerid]][pPhousekey] = Player[playerid][pPhousekey];
                    Player[ProposedTo[playerid]][pPbiskey] = Player[playerid][pPbiskey];
                    ProposedTo[playerid] = 999;
                    MarriageCeremoney[playerid] = 0;
                    return 1;
                }
                else
                {
                    MarriageCeremoney[playerid] = 0;
                    ProposedTo[playerid] = 999;
                    return 0;
                }
            }
        }
linha : 23028

pawn Код:
tmp = strtok(text, idx);
        if((strcmp("contratos", tmp, true, strlen(tmp)) == 0) && strlen(tmp))
        {
            if(Player[playerid][pRank] < 3)
            {
                SendClientMessage(playerid, COLOR_GREY, "[AGКNCIA] Somente hitmans com cargo 3 ou mais poderгo ver e atribuir contratos !");
                return 0;
            }

            SendClientMessage(playerid, COLOR_ORANGE, "|-Contratos-|");
            for(new i = 0; i <= HighestID; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(Player[i][pHeadValue] > 0 && SendoProcurado[i] == false)
                    {
                        format(string, 128, "Vнtima: (%d)%s | Valor: %d",i,Player[i][pName],Player[i][pHeadValue]);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                    }
                }
            }
            return 0;
        }
        else if((strcmp("atribuir", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("atribuir")))
        {
            tmp = strtok(text, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "[USO] atribuir [assassino] [vitima]1");
                return 0;
            }

            giveplayerid = ReturnUser(tmp);
            tmp = strtok(text, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "[USO] atribuir [assassino] [vitima]2");
                return 0;
            }

            new giveid = ReturnUser(tmp);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "[USO] atribuir [assassino] [vitima]3");
                return 0;
            }
            if(IsPlayerConnected(giveplayerid))
            {
                if(Player[giveplayerid][pMember] != TEAM_HITMAN)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Este jogador nгo й um assassino !");
                    return 0;
                }
                if(Procurando[giveplayerid] == true)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Este Assassino jб estб ocupado com um contrato !");
                    return 0;
                }
                if(SendoProcurado[giveid] == true)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Algum assassino jб foi encarregado de matar esta vнtima !");
                    return 0;
                }
                if(IsPlayerConnected(giveid))
                {
                    format(string, sizeof(string), "Vocк atribuiu %s a matar: %s(ID:%d), por R$ %d.", ReturnPlayer(giveplayerid), ReturnPlayer(giveid),giveid,Player[giveid][pHeadValue]);
                    SendClientMessage(playerid, COLOR_YELLOW, string);
                    format(string, sizeof(string), "O assassino %s atriubuiu a vocк, matar: %s(ID:%d), por R$ %d.", ReturnPlayer(playerid), ReturnPlayer(giveid),giveid,Player[giveid][pHeadValue]);
                    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
                    SendoProcurado[giveid] = true;
                    Procurando[giveplayerid] = true;
                    Vitima[giveplayerid] = giveid;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "[AGКNCIA] A vнtima nгo estб online !");
                    return 0;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "[AGКNCIA] Este assassino nгo estб online, atribua a outro !");
                return 0;
            }
            return 0;
        }
        else if((strcmp("cancelar", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("cancelar")))
        {
            tmp = strtok(text, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "[USO] cancelar [id/nick]");
                return 0;
            }
            giveplayerid = ReturnUser(tmp);
            new giveid;
            if(Procurando[giveplayerid] == false)
            {
                SendClientMessage(playerid, COLOR_GREY, "Este assassino nгo tem um contrato !");
                return 0;
            }
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    giveid = Vitima[giveplayerid];
                    Procurando[giveplayerid] = false;
                    SendoProcurado[giveid] = false;
                }
                return 0;
            }
            else
                SendClientMessage(playerid, COLOR_GREY, "[AGКNCIA] Este assassino nгo estб online, atribua a outro !");

            return 0;
        }
        else if((strcmp("Logout", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout")))
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AGКNCIA] Vocк desligou seu Laptop, e desconectou da Agкncia.");
            ConnectedToLaptop[playerid] = false;
            return 0;
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AGКNCIA] Vocк abriu seu Laptop, e conectou а Agкncia. ");
            SendClientMessage(playerid, COLOR_GREY, "|--Agкncia Assassinos--|");
            SendClientMessage(playerid, COLOR_WHITE, "|-Noticias-|");
            SendClientMessage(playerid, COLOR_WHITE, "|-Contratos-|");
            SendClientMessage(playerid, COLOR_WHITE, "|-Atribuir-|");
            SendClientMessage(playerid, COLOR_WHITE, "|-Logout-|");
            format(string, sizeof(string), "Mкs: %s | Dia: %d | Hora: %02d:%02d |", MonthNames[ClockTime[dMonth]-1], ClockTime[dDay], ClockTime[tHour], ClockTime[tMinute]);
            SendClientMessage(playerid, COLOR_WHITE, string);
        }
        SendClientMessage(playerid, COLOR_GREY, "Final con.");
        return 0;
    }
Reply
#2

Alguem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)