Help cmds - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help cmds (
/showthread.php?tid=549059)
Help cmds -
BlackEvils - 04.12.2014
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?
AW: Help cmds -
Flori - 04.12.2014
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.
Re: Help cmds -
MohanedZzZ - 04.12.2014
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);
Re: Help cmds -
BlackEvils - 05.12.2014
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