zcmd and strcmp in the same gamemode.
#1

Whenever I use zcmd in my gamemode, only the zcmd commands work. How can I make it so both commands work?
Reply
#2

Why you want to use both?
zcmd is a lot better and faster.
If I were you i'd stay with zcmd
Reply
#3

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
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)