Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Do not use both of them. Use either DCMD or ZCMD.
Posts: 481
Threads: 19
Joined: Feb 2012
yes its problem with "mixing" systems so use only once
Posts: 352
Threads: 37
Joined: Jun 2012
ZCMD blocks the OnPlayerCommandText callback but you can use the dcmd(...) lines in the callbacks included with ZCMD:
Код:
OnPlayerCommandReceived(playerid, cmdtext[])
OnPlayerCommandPerformed(playerid, cmdtext[], success)
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
There's not a reason to do it. Seriously, dcmd uses strcmp in a macro which makes it still slow and outdated. Switch to ZCMD for a better performance and sscanf instead of strtok (if you use it, I recommend you not to do it anymore).
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
Or you can use YCMD for more faster performance (if you're using more than 500 commands or more)
Posts: 352
Threads: 37
Joined: Jun 2012
Quote:
Originally Posted by _Jake_
Or you can use YCMD for more faster performance (if you're using more than 500 commands or more)
|
Actually the difference is very tiny and can only be seen in the speed tests, not in a regular gamemode.