[HELP]OnPlayerCommandText():
#1

After I changed the server to 0.3c All my commands in OnPlayerCommandText() don't work. The server says they are unknown. Can someone please help me out
Reply
#2

Did you re-compile the script?
Reply
#3

Yes..., I have no idea where it comes from
Reply
#4

Did you use zcmd?
Reply
#5

zcmd How you mean ?
Reply
#6

Here is an exmaple of how I start a commmand

Код:
if(strcmp(cmd, "/faq", true) == 0)
Not with :

Код:
zcmd(param, cmdtext[])
Reply
#7

You cant use ZCMD and OnPlayerCommandText in one script, They all must be zcmd or in that callback.
Everything works for me so recheck everything for yourself
Reply
#8

Quote:
Originally Posted by Kastranova
Посмотреть сообщение
Here is an exmaple of how I start a commmand

Код:
if(strcmp(cmd, "/faq", true) == 0)
Not with :

Код:
zcmd(param, cmdtext[])
I don't use ZCMD, so you say I have to change all my cmds to ZCMD
Reply
#9

maybe you just have "return 0;" at the end but not "return 1;" after each command?
Reply
#10

Nope that ain't it.....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)