[Ajuda] colocar comando em zcmd
#1

Код:
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
Reply
#2

cmd_motoron(playerid);
cmd_motoroff(playerid);
Reply
#3

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
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)