Posts: 5
Threads: 3
Joined: Jul 2010
Reputation:
0
Whenever I use zcmd in my gamemode, only the zcmd commands work. How can I make it so both commands work?
Posts: 182
Threads: 23
Joined: Aug 2009
Reputation:
0
Why you want to use both?
zcmd is a lot better and faster.
If I were you i'd stay with zcmd
Posts: 2,938
Threads: 162
Joined: May 2010
you can use both. you need to put strcmp in oncommandrecieved (zcmd callback)
or just change the header from the strcmp stuff to zcmd and change params to cmdtext lol
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
You can use strcmp with zcmd, strcmp just compares two strings. Its OnPlayerCommandText that wont, you could say zcmd overides OnPlayerCommandText (it doesn't but think of it that way).
You should delete OnPlayerCommandText if you are using zcmd.
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
If you use ZCMD OnPlayerCommandText is not called
you can try replace
public OnPlayerCommandText(playerid,cmdtext[]) with
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
[NOTE]I did not trye'd these or anything i just think it will work
but i suggest convert your commands to zcmd cos its faster and use less memory