[AJUDA] /respawncarros
#1

no comando /respawncarros ele no final da um UNKNOWN COMMAND, mais o comando existe, porque isso ?

pawn Код:
if(strcmp(cmd, "/respawncarros", true) == 0 || strcmp(cmd, "/rc", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 1337)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo estб autorizado a usar este comando !");
                return 1;
            }
            if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1340 && PlayerInfo[playerid][pAdmin] != 1341 && PlayerInfo[playerid][pAdmin] != 1342)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return 1;
            }
            GetPlayerName(playerid, playername, sizeof(playername));
            if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
            {
                format(string, sizeof(string), "Todos os carros foram para seus locais de inicio.");
            }
            else
            {
                format(string, sizeof(string), "ADMCMD: Todos os carros foram para seus locais de inicio. By: %s.", playername);
            }
            SendClientMessageToAll(COLOR_LIGHTRED,string);
            new bool:unwanted[CAR_AMOUNT];
            for(new player=0; player<MAX_PLAYERS; player++)
            {
                if(IsPlayerConnected(player) && IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 1; car <= CAR_AMOUNT; car++)
            {
                if(!unwanted[car]) SetVehicleToRespawn(car);
            }
        }
        return 1;
    }
Se alguem puder me ajudar, lembrando o comando funciona normalmente sу que no final ele aparece esse unknow command, acho que pode ser algum comflito slб

+REP '-'
Reply


Messages In This Thread
[AJUDA] /respawncarros - by Digao - 09.06.2012, 17:16
Re: [AJUDA] /respawncarros - by leonardo1434 - 09.06.2012, 17:29
Re: [AJUDA] /respawncarros - by Josma_cmd - 09.06.2012, 17:31
Respuesta: [AJUDA] /respawncarros - by Digao - 09.06.2012, 17:33
Re: [AJUDA] /respawncarros - by Josma_cmd - 09.06.2012, 20:37
Respuesta: [AJUDA] /respawncarros - by Digao - 09.06.2012, 22:41
Respuesta: [AJUDA] /respawncarros - by Digao - 10.06.2012, 03:32

Forum Jump:


Users browsing this thread: 1 Guest(s)