[Ajuda] O que tem de ERRADO?
#1

pawn Код:
if(strcmp(cmd, "/assaltar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "{ff0000}[Info]{ffffff} /assaltar [playerid/Parte-do-Nick] [quantia]");
                return 1;
            }
            //giveplayerid = strval(tmp);
            giveplayerid = ReturnUser(tmp);
            if(RoubarPlayerTime[playerid] == 1)
            {
                   SendClientMessage(playerid, COLOR_WHITE, "  Vocк precisa esperar 5 minutos para usar esse comando denovo !");
                   return 1;
            }
            if(gTeam[playerid] == 2 || IsACop(playerid))
            {
                SendClientMessage(playerid, COLOR_WHITE, "Homens da lei nгo podem assaltar, isso й crime");
                return 1;
            }
            if(PlayerInfo[playerid][pJailed] > 0)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo pode assaltar enquanto estб preso meu JOVEM.");
                return 1;
            }
            if (IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    if(PlayerInfo[giveplayerid][pLocal] == 106)
                    {
                        SendClientMessage(playerid, COLOR_WHITE, "Este comando nгo й habilitado para se usar nesse lugar.");
                        return 1;
                    }
                    if (ProxDetectorS(5.0, playerid, giveplayerid))
                    {
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        new pcash = robumonttt;
                        new robcash = random(pcash);
                        playermoney = GetPlayerGP(giveplayerid);
                        if(playermoney <= 999)
                        {
                            SendClientMessage(playerid, COLOR_WHITE, "O jogador estб sem grana nгo adianta rouba-lo");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12
                        || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19
                        || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18  // colocar aki o MEMBER ID DA ORG E O LEADER ID DA ORG, FUNKEIROS 24
                        || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26
                        || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24|| PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27
                        || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25
                        {
                            if(!IsPlayerInAnyVehicle(playerid))//animcon
                            {
                                GivePlayerGP(giveplayerid, (0 - robcash));
                                GivePlayerGP(playerid, robcash);
                                LoopingAnim(playerid,"PED","gang_gunstand",4.0,1,1,1,1,1);
                                SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_HANDSUP);
                                SetTimerEx("Roubarplayer", 10000, false, "i", playerid);
                                SetTimerEx("Roubarplayer2", 10000, false, "i", giveplayerid);
                                RoubarPlayerTime[playerid] = 1;
                                SetTimerEx("RoubarPlayerTimer", 300000, false, "i", playerid);
                                SetPlayerCriminal(playerid,255, "Assalto a mгo armada");
                                WantedPoints[playerid] += 1;
                                SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
                                format(string, sizeof(string), "%s passou a mгo na carteira de %s.", sendername ,giveplayer);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            }
                            else
                            {
                                SendClientMessage(playerid, COLOR_WHITE, " Use esse comando somente fora do carro");
                            }
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_WHITE, " Vocк nao pode assaltar!");
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_WHITE, "   Vocк estб longe do persongem");
                    }
                }//invalid id
            }
            else
            {
                format(string, sizeof(string), "   %d nгo й um jogador Ativo.", giveplayerid);
                SendClientMessage(playerid, COLOR_WHITE, string);
            }
        }
    }
ta dando esse erro
pawn Код:
C:\Users\Pedro\Desktop\Server Ichigo\gamemodes\BrasilSamp.pwn(52908) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Na linha
pawn Код:
{
fica logo abaixo de :

pawn Код:
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12
                        || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19
                        || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18  // colocar aki o MEMBER ID DA ORG E O LEADER ID DA ORG, FUNKEIROS 24
                        || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26
                        || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24|| PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27
                        || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25
                        { // Erro aqui
Reply
#2

Код:
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12
                        || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 
                        || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18  // colocar aki o MEMBER ID DA ORG E O LEADER ID DA ORG, FUNKEIROS 24
                        || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26
                        || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24|| PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27
                        || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25
                        {
Tenta isso..

Код:
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12
                        || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 
                        || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18  // colocar aki o MEMBER ID DA ORG E O LEADER ID DA ORG, FUNKEIROS 24
                        || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26
                        || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24|| PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27
                        || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
                        {
Faltava fechar um parenteses.
Reply
#3

Quote:
Originally Posted by Jimmy_Vilhena
Посмотреть сообщение
Код:
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12
                        || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 
                        || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18  // colocar aki o MEMBER ID DA ORG E O LEADER ID DA ORG, FUNKEIROS 24
                        || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26
                        || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24|| PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27
                        || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25
                        {
Tenta isso..

Код:
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12
                        || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 
                        || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18  // colocar aki o MEMBER ID DA ORG E O LEADER ID DA ORG, FUNKEIROS 24
                        || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26
                        || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24|| PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27
                        || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
                        {
Faltava fechar um parenteses.
Oh GOD!!
Sem palavras para minha falta de Atenзгo....
Thanks cara
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)