Ajuda ae , olha o erro - - - C:\Documents and Settings\rene\Desktop\Brasil Virtual Life\gamemodes\BVL.pwn(18705) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
if (strcmp(cmd, "/asenha", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
          tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USO: /irsenha [playerid/Parte-do-Nick]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
              if(plo != INVALID_PLAYER_ID)
              {
                    new nome[24];
          GetPlayerName(playerid, nome, sizeof nome);
          if(PlayerInfo[playerid][pAdmin] >= 1
                    {
                      if(PlayerInfo[plo][pAge] == 0){
                            if(Spectate[playerid] != 255)
                            {
                                Spectate[playerid] = 256;
                            }
                            GetPlayerPos(plo, plocx, plocy, plocz);
                            if(PlayerInfo[plo][pInt] > 0)
                            {
                                SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                                PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
                                PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                            }
                            if(PlayerInfo[playerid][pInt] == 0)
                            {
                                SetPlayerInterior(playerid,0);
                            }
                            if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
                            {
                                SetPlayerInterior(playerid,1);
                                PlayerInfo[playerid][pInt] = 1;
                            }
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid,plocx,plocy+2, plocz);
                            }
                            GetPlayerName(plo, giveplayer,256);
                            GetPlayerName(playerid, sendername,256);
                    format(string, sizeof(string), "[Atemdimento] Vocк foi atender ao chamado de %s.", giveplayer);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "[Atemdimento] O admin %s, veio para te atender.", sendername);
                    SendClientMessage(plo, COLOR_WHITE, string);
                    new string2[256];
                    format(string2, sizeof(string), "[Atemdimento] O Administrador %s foi atender %s que solicitou atendimento atravez da senha de nъmero: %d !", sendername,giveplayer,senha);
                            ABroadCast(COLOR_YELLOW,string2,1);
                            PlayerInfo[plo][pAge] = 0;
                        }else{
                            SendClientMessage(playerid, COLOR_GRAD1, "O player nгo estб na fila.");
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar este comando.");
                    }
                }
            }
            else
            {
                format(string, sizeof(string), "  %d nгo й um player ativo.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
if (strcmp(cmd, "/asenha", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
          tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USO: /irsenha [playerid/Parte-do-Nick]");
                return 1;
            }
            new Float:plocx,Float:plocy,Float:plocz;
            new plo;
            plo = ReturnUser(tmp);
            if (IsPlayerConnected(plo))
            {
              if(plo != INVALID_PLAYER_ID)
              {
                    new nome[24];
          GetPlayerName(playerid, nome, sizeof nome);
          if(PlayerInfo[playerid][pAdmin] >= 1)
                    {
                      if(PlayerInfo[plo][pAge] == 0){
                            if(Spectate[playerid] != 255)
                            {
                                Spectate[playerid] = 256;
                            }
                            GetPlayerPos(plo, plocx, plocy, plocz);
                            if(PlayerInfo[plo][pInt] > 0)
                            {
                                SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                                PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
                                PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                            }
                            if(PlayerInfo[playerid][pInt] == 0)
                            {
                                SetPlayerInterior(playerid,0);
                            }
                            if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
                            {
                                SetPlayerInterior(playerid,1);
                                PlayerInfo[playerid][pInt] = 1;
                            }
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid,plocx,plocy+2, plocz);
                            }
                            GetPlayerName(plo, giveplayer,256);
                            GetPlayerName(playerid, sendername,256);
                    format(string, sizeof(string), "[Atemdimento] Vocк foi atender ao chamado de %s.", giveplayer);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "[Atemdimento] O admin %s, veio para te atender.", sendername);
                    SendClientMessage(plo, COLOR_WHITE, string);
                    new string2[256];
                    format(string2, sizeof(string), "[Atemdimento] O Administrador %s foi atender %s que solicitou atendimento atravez da senha de nъmero: %d !", sendername,giveplayer,senha);
                            ABroadCast(COLOR_YELLOW,string2,1);
                            PlayerInfo[plo][pAge] = 0;
                        }else{
                            SendClientMessage(playerid, COLOR_GRAD1, "O player nгo estб na fila.");
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar este comando.");
                    }
                }
            }
            else
            {
                format(string, sizeof(string), "  %d nгo й um player ativo.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }