onplayercommandtext problem
#1

I use zcmd, but does not detect the public OnPlayerCommandText(playerid,cmdtext[]) , what's wrong?

pl.
this says unknown command.
Код:
if (strcmp("/animlist", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, COLOR_BLUE, "/anim-crossarms |");
        return 1;
	}
so you can use.
Код:
CMD:animlist(playerid, params[])
	{
		SendClientMessage(playerid, COLOR_BLUE, "/anim-crossarms |");
        return 1;
	}
why is it wrong? Anyone?
Reply
#2

You used the zmcd command inside onplayercommandtext?
Reply
#3

When you want to use ZCMD you shouldn't put the command under OnPlayerCommandText ---> which means you can put it anywhere in your gamemode, no matter what... and change OnPlayerCommandText to OnPlayerCommandRecieved and put in there the STRCMP commands.

I hope that I helped you, good luck.
Reply
#4

I'll try thanks for the answers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)