Help cmds
#1

Hi all im trying to change cmds example

dcmd(Mettiadmin,10, cmdtext);
to
dcmd(MakeAdmin,10, cmdtext);

and

dcmd_Mettiadmin(playerid, params[])
...
to
dcmd_MakeAdmin(playerid, params[])
...

I get this filesctip and i want change cmds i change them and i don't get error or warns but the command don't work
how i can do?
Reply
#2

Don't use caps, like "makeadmin" instead of "MakeAdmin".

The lengh of the cmd need to be correct, because the command, for which you declare the lengh has 2 functions. One is the command which you type and two is, that it is a part of the slfunction which is called.
Reply
#3

Change this
Код:
dcmd(Mettiadmin,10, cmdtext);
To
Код:
dcmd(MakeAdmin,9, cmdtext);
Then complite the gamemode.
& Don't use caps to make commands.
Let me explain for you how i fixed it.

Its easy just count the letters here is a example:
This A B C D E F G = 7 letters.
All you need to count how many letter in the command and put it here.
dcmd(abcdefg,Here, cmdtext);
Reply
#4

Quote:
Originally Posted by MohanedZzZ
Посмотреть сообщение
Change this
Код:
dcmd(Mettiadmin,10, cmdtext);
To
Код:
dcmd(MakeAdmin,9, cmdtext);
Then complite the gamemode.
& Don't use caps to make commands.
Let me explain for you how i fixed it.

Its easy just count the letters here is a example:
This A B C D E F G = 7 letters.
All you need to count how many letter in the command and put it here.
dcmd(abcdefg,Here, cmdtext);
thx you very much now i understund
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)