Unknown Command !
#1

Hey guys,

Since I install ZCMD on the top of my gm every command that I enter it says "Unknown Command"...Except the ZCMD command that I type..
Reply
#2

Change the commands to ZCMD, I.E CMD:test(playerid, params[]) {
Reply
#3

You can't have the public OnPlayerCommandText(playerid, cmdtext[]) if you use zcmd.

P.S.: It's not nice to copy Ditch :/
Reply
#4

O: There are no other way ?
Reply
#5

No. If you want to convert the commands to zcmd commands, then drop just one strcmp command and i'll give you an example how you can convert them to zcmd.
Reply
#6

How can I convert ZCMD to regular command ?
Reply
#7

Instead of creating the command in a stock (or something like this, dunno how this zcmd works), create them under a "if(!strcmp(cmdtext,"/cmd",true))" line in OnPlayerCommandText.
Reply
#8

https://sampwiki.blast.hk/wiki/Fast_Commands

You could try this.
Reply
#9

Quote:
Originally Posted by Unte99
Посмотреть сообщение
How can I know what the number is ?

pawn Код:
dcmd(heal, 4, cmdtext);
Reply
#10

It's the length of the command. Lets say:

pawn Код:
dcmd(healplayer, 10, cmdtext);
dcmd(healplayerone, 13, cmdtext);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)