help| how to call to cmd with ZCMD
#6

Quote:
Originally Posted by nilanjay
Посмотреть сообщение
pawn Код:
return cmd_lv(playerid, params);
you have to also add return before cmd_lv if you are using ZCMD.
Quote:
Originally Posted by iZN
Посмотреть сообщение
Are you sure you have command named lv?

pawn Код:
// using this to redirect to the command
cmd_lv(playerid);

// this is your command
CMD:lv(playerid)
{
    // code
    return true;
}
i use with ZCMD

and i have the coomand :

PHP код:
CMD:lv(playerid,params[])
{
        new 
Float:Pos[3];
        
GetVehiclePos(GetPlayerVehicleID(playerid),Pos[0],Pos[1],Pos[2]);
        
SetVehiclePos(GetPlayerVehicleID(playerid),Pos[0],Pos[1],Pos[2]);
        return 
SetPlayerInterior playerid ,) ;
    return 
1;

and this is the line to call cmd

PHP код:
            switch ( listitem )
            {
                case 
0: return cmd_lv(playerid); 
this is dont work

undefined symbol "cmd_lv"


oops now its work, i used with y_command and now i change to zcmd and its work !
Reply


Messages In This Thread
help| how to call to cmd with ZCMD - by SwiZzoR - 13.05.2014, 10:51
Re: help| how to call to cmd with ZCMD - by iZN - 13.05.2014, 11:02
Re: help| how to call to cmd with ZCMD - by SwiZzoR - 13.05.2014, 11:08
Re: help| how to call to cmd with ZCMD - by nilanjay - 13.05.2014, 11:10
Re: help| how to call to cmd with ZCMD - by iZN - 13.05.2014, 11:10
Re: help| how to call to cmd with ZCMD - by SwiZzoR - 13.05.2014, 11:18
Re: help| how to call to cmd with ZCMD - by nilanjay - 13.05.2014, 11:20

Forum Jump:


Users browsing this thread: 2 Guest(s)