15.01.2011, 10:38
Hey Guys,
i'm a bit confused with using zcmd.
In the description it's said that zcmd uses OnPlayerCommandText().
If i add f.ex
I get "error 017: undefined symbol "cmd_TEST""
If i change OnPlayerCommandText(playerid,cmdtext[]) to OnPlayerCommandText(playerid,params[]) it says:
"error 025: function heading differs from prototype"
What i'm doing wrong?
i'm a bit confused with using zcmd.
In the description it's said that zcmd uses OnPlayerCommandText().
If i add f.ex
Код:
if(COMMAND:TEST(playerid, params[]) // or CMD:mycommand(playerid, params[]) { SendClientMessage(playerid, COLOR_RED, "This is a test cmd"); return 1; }
If i change OnPlayerCommandText(playerid,cmdtext[]) to OnPlayerCommandText(playerid,params[]) it says:
"error 025: function heading differs from prototype"
What i'm doing wrong?