zcmd or sscanf disables cmds.
#1

Why when I do #include <zcmd>
#include <sscanf2>

are my if (strcmp("/cop",.... commands disabled?
Not just the /cop, but all the cmds made using strcmp..
Reply
#2

You cannot use both ZCMD and the OnPlayerCommandText callback together. You will need to convert all of your commands to ZCMD.
Reply
#3

..... oh man.. Is there a way to create a cmd with strcmp that affects others, like setplayerfaction, but using strcmp and it doesnt apply to me, but the ID I choose?
Reply
#4

Quote:

Not just the /cop, but all the cmds made using strcmp..

No...
Reply
#5

Quote:
Originally Posted by Kush
Посмотреть сообщение
No...
You are incorrect.

Yes, there is. However, the style is very outdated and enefficient. I highly recommend you move on to ZCMD. To help you with parameters inside of commands, look into sscanf (assuming there's more than one. Otherwise, the basic 'params' will suit your needs).
Reply
#6

Quote:
Originally Posted by Grim_
Посмотреть сообщение
You are incorrect.

Yes, there is. However, the style is very outdated and enefficient. I highly recommend you move on to ZCMD. To help you with parameters inside of commands, look into sscanf (assuming there's more than one. Otherwise, the basic 'params' will suit your needs).
Did you even think before responding? Read my post regarding the quote again. We know Zcmd and strcmp aren't compatible, and we know strcmp is outdated and 'inefficient'.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)