[help]Dcmd To ZCMD
#2

in notepad++
open replace, enable regular expressions
and search for: dcmd_(a-z,A-Z,0-9)*
and replace with: COMMAND:$1

that will "convert" everything looking like:
dcmd_abcd
to
COMMAND:abcd

and of course remove all the dcmd related stuff from OnPlayerCommandText
you also dont have to worry about unused params anymore, just remove it everywhere.
& you need this callback "OnPlayerCommandPerformed(playerid, cmdtext[], success)"
Quote:
Originally Posted by zeex
This one is called when someone sends a command. If you return 0 here, the command won't be performed.
also, why not switch to YCMD ? check it out here
its far more advanced + slightly faster.
Reply


Messages In This Thread
[help]Dcmd To ZCMD - by Desha1 - 30.12.2014, 14:50
AW: [help]Dcmd To ZCMD - by CutX - 30.12.2014, 15:06
Re: [help]Dcmd To ZCMD - by Desha1 - 30.12.2014, 15:23
Re: [help]Dcmd To ZCMD - by Desha1 - 30.12.2014, 16:04
AW: Re: [help]Dcmd To ZCMD - by CutX - 30.12.2014, 16:08
Re: [help]Dcmd To ZCMD - by Desha1 - 30.12.2014, 16:48
AW: Re: [help]Dcmd To ZCMD - by CutX - 30.12.2014, 17:02

Forum Jump:


Users browsing this thread: 3 Guest(s)