[SOLVED] Switching from DCMD to ZCMD
#4

Include the ZCMD include, ZCMD uses an alternative function for command responses, you'll need to remove the dcmd(xxx). There are two functions, one when the command is recieved and one when it has been performed.

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    return 1;
}

public OnPlayerCommandReceived(playerid, cmdtext[])
{
  return 1;
}
DCMD:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(afro, 4, cmdtext);
}

dcmd_afro(playerid, params[])
{
return 1;
}
With ZCMD:

pawn Код:
command(afro, playerid, params[])
{
return 1;
}
Just an example, to show you the difference. You should add level checks under the command, instead of the part where it's parsing the command.
Reply


Messages In This Thread
[SOLVED] Switching from DCMD to ZCMD - by KnooL - 13.01.2010, 19:00
Re: [UNSOLVED] Switching from DCMD to ZCMD - by Grim_ - 13.01.2010, 19:06
Re: [UNSOLVED] Switching from DCMD to ZCMD - by oncedead - 13.01.2010, 19:46
Re: [UNSOLVED] Switching from DCMD to ZCMD - by Calgon - 13.01.2010, 19:54
Re: [UNSOLVED] Switching from DCMD to ZCMD - by KnooL - 14.01.2010, 14:29
Re: [UNSOLVED] Switching from DCMD to ZCMD - by Calgon - 14.01.2010, 14:37
Re: [UNSOLVED] Switching from DCMD to ZCMD - by KnooL - 14.01.2010, 15:52
Re: [UNSOLVED] Switching from DCMD to ZCMD - by oncedead - 14.01.2010, 16:22
Re: [UNSOLVED] Switching from DCMD to ZCMD - by KnooL - 14.01.2010, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)