[Ajuda] Convertendo strcmp para zcmd
#3

warning 219: local variable "cmd" shadows a variable at a preceding level
error 017: undefined symbol "tmp"
error 017: undefined symbol "cmdtext"
error 017: undefined symbol "tmp"
error 017: undefined symbol "tmp"
error 017: undefined symbol "giveplayer"
error 017: undefined symbol "giveplayer"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

pawn Код:
CMD:matar(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COR_ERRO, "USE: /matar [id]");
                return true;
            }
            new nomezinho[52];
            GetPlayerName(playerid, nomezinho, sizeof(nomezinho));
            new playa;
            playa = ReturnUser(tmp);
            if(Player[playerid][pAdmin] >=4)
            {
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        SetPlayerHealth(playa, 0.0);
                        SetPlayerVirtualWorld(playa,0);
                        format(string9, sizeof(string9), "AdmCmd: %s ganhou uma morte de: %s",giveplayer ,nomezinho);
                        ABroadCast(COR_CV,string9,1);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COR_ERRO, "   Vocк nгo estб autorizado a usar este comando!");
            }
        }
        return true;
    }
Reply


Messages In This Thread
Convertendo strcmp para zcmd - by _Play_ - 07.10.2014, 19:58
Re: Convertendo strcmp para zcmd - by DavidCosta - 07.10.2014, 21:34
Re: Convertendo strcmp para zcmd - by _Play_ - 07.10.2014, 23:51
Re: Convertendo strcmp para zcmd - by DavidCosta - 08.10.2014, 05:16
Re: Convertendo strcmp para zcmd - by _Play_ - 08.10.2014, 16:28
Re: Convertendo strcmp para zcmd - by Artista - 08.10.2014, 17:15
Re: Convertendo strcmp para zcmd - by _Play_ - 08.10.2014, 18:22

Forum Jump:


Users browsing this thread: 3 Guest(s)