DCMD Error - 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: DCMD Error (
/showthread.php?tid=422801)
DCMD Error -
[CwS]TonyFortebracci - 15.03.2013
When I create my command with DCMD the compiler write a error
Код:
error 035: argument type mismatch (argument 2)
The line with error:
Код:
dcmd(admins,5,cmdtext);
My dcmd define:
Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Re: DCMD Error -
Misiur - 15.03.2013
Weird, looks like cmdtext isn't string. Show full OnPlayerCommandText please
Re: DCMD Error -
Gamer_007 - 15.03.2013
Change this to
this
btw show the admin command.