[ajuda]Duvidas com zcmd
#1

fala galera, sу na boa?

seguinte, tenho umas duvidas sobre o zcmd, se alguem puder me ajudar eu agradeзo:
Eu ja li uns 200 tutoriais sobre zcmd mas nenhum esclareceu essas duvidas

1° - nгo tem como usar zcmd e strcmp no mesmo gamemode? se tem, como eu faзo?

2° - alguem sabe pq esse comando nгo ta funcionando?

pawn Код:
new Desafiante[MAX_PLAYER_NAME];
new Desafiado[MAX_PLAYER_NAME];
new id;
new Str[256];
    CMD:desafiar(playerid, params[])
    {
        if(sscanf(params, "u", id))
        {
            SendClientMessage(playerid, CINZA, "USO: /desafiar [id]");
        }
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, AMARELO, "Jogador offline");
        if(id == playerid) return SendClientMessage(playerid, AMARELO, "vocк nгo pode desafiar a si mesmo!");
        GetPlayerName(playerid, Desafiante, sizeof(Desafiante));
        GetPlayerName(id, Desafiado, sizeof(Desafiado));
        SendClientMessage(playerid, AZUL_CLARO, "Jogador desafiado! aguarde a resposta!");
        format(Str, sizeof(Str), "O Jogador %s estб te desafiando para uma corrida!", Desafiante);
        SendClientMessage(id, AZUL_CLARO, Str);
        format(Str, sizeof(Str), "O JOGADOR %s ESTБ DESAFIANDO %s PARA UM DUELO NA PISTA!", Desafiante, Desafiado);
        SendClientMessageToAll(VERDE_CLARO, Str);
        return 1;
    }
Ele compila normalmente, sу que o comando em si nгo funciona, se eu digitar sу /desafiar ele manda a msg certa mas se usar /desafiar [qualquer_id] ele manda a mensagem pra mim mesmo, independente do meu ID ser diferente.

alguem sabe me ajudar?
Reply


Messages In This Thread
[ajuda]Duvidas com zcmd - by Lucas_Alemao - 18.01.2012, 19:12
Re: [ajuda]Duvidas com zcmd - by [R] ousenber [K] - 18.01.2012, 19:16
Re: [ajuda]Duvidas com zcmd - by Lucas_Alemao - 18.01.2012, 19:27
Re: [ajuda]Duvidas com zcmd - by [R] ousenber [K] - 18.01.2012, 19:30
Re: [ajuda]Duvidas com zcmd - by Lucas_Alemao - 18.01.2012, 23:52
Re: [ajuda]Duvidas com zcmd - by Dolby - 19.01.2012, 01:24
Re: [ajuda]Duvidas com zcmd - by Lucas_Alemao - 19.01.2012, 02:28

Forum Jump:


Users browsing this thread: 1 Guest(s)