DCMD Error
#1

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
Reply
#2

Weird, looks like cmdtext isn't string. Show full OnPlayerCommandText please
Reply
#3

Change this to

pawn Код:
dcmd(admins,5,cmdtext);
this
pawn Код:
dcmd(admins,6,cmdtext);
btw show the admin command.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)