SERVER: Unknown Command (dcmd)
#1

In my gamemode script there are DCMD and ZCMD cmds. I did all i had to - dcmd(.....), return 0 at the end of OnPlayerCommandText. And stil not working What can i do?

Thanks in advance!
Reply
#2

Do not use both of them. Use either DCMD or ZCMD.
Reply
#3

yes its problem with "mixing" systems so use only once
Reply
#4

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)
Reply
#5

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).
Reply
#6

Or you can use YCMD for more faster performance (if you're using more than 500 commands or more)
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)