SA-MP Forums Archive
[Ajuda] colocar comando em zcmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] colocar comando em zcmd (/showthread.php?tid=499069)



colocar comando em zcmd - XVenomX - 06.03.2014

Код:
if((newkeys == 1) && (IsPlayerInAnyVehicle(playerid)))
    {
        if(!GetPVarInt(playerid, "Motor ON"))
        {
            SetPVarInt(playerid, "Motor ON", true);
            OnPlayerCommandText(playerid,"/motoron"); //_______ Aki
        }
        else
        {
            SetPVarInt(playerid, "Motor ON", false);
            OnPlayerCommandText(playerid,"/motoroff");//________Aki
        }
        return true;
    }
Peguei um /motoron e /motoroff, os comandos em si eu coloquei em zcmd ... Mas essa parte do OnPlayerCommandText(Onde й o comando) eu queria alterar pra q ele fosse obedecido por zcmd


Re: colocar comando em zcmd - Myam - 06.03.2014

cmd_motoron(playerid);
cmd_motoroff(playerid);


Re: colocar comando em zcmd - XVenomX - 06.03.2014

Quote:
Originally Posted by Myam
Посмотреть сообщение
cmd_motoron(playerid);
cmd_motoroff(playerid);
Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition



Re: colocar comando em zcmd - FallweN - 06.03.2014

pawn Код:
cmd_motoron(playerid, "");
cmd_motoroff(playerid, "");



Re: colocar comando em zcmd - XVenomX - 06.03.2014

Quote:
Originally Posted by Myam
Посмотреть сообщение
cmd_motoron(playerid);
cmd_motoroff(playerid);
Quote:
Originally Posted by FallweN
Посмотреть сообщение
pawn Код:
cmd_motoron(playerid, "");
cmd_motoroff(playerid, "");
Valeu... Sempre me ajudando