SA-MP Forums Archive
dcmd returns "Number of Arguments does not match definition" - 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 returns "Number of Arguments does not match definition" (/showthread.php?tid=351568)



dcmd returns "Number of Arguments does not match definition" - stormchaser206 - 16.06.2012

Sometimes when i make something like this (As an example):
pawn Код:
dcmd(v,1,cmdtext);
It returns:
Код:
C:\Users\Keegan\Desktop\gamemodes\stunts.pwn(892) : warning 202: number of arguments does not match definition
Is there any reason this is happening?


Re: dcmd returns "Number of Arguments does not match definition" - ReneG - 16.06.2012

https://sampforum.blast.hk/showthread.php?tid=91354
https://sampforum.blast.hk/showthread.php?tid=120356


Re: dcmd returns "Number of Arguments does not match definition" - Audi_Quattrix - 16.06.2012

Im not good with dcmd but it says u have Less or More arguments than asked


Re: dcmd returns "Number of Arguments does not match definition" - FireCat - 16.06.2012

dcmd(v,1,cmdtext[]);


Re: dcmd returns "Number of Arguments does not match definition" - stormchaser206 - 16.06.2012

Quote:
Originally Posted by FireCat
Посмотреть сообщение
dcmd(v,1,cmdtext[]);
That just gave me more errors.


Re: dcmd returns "Number of Arguments does not match definition" - stormchaser206 - 18.06.2012

Bump


Re: dcmd returns "Number of Arguments does not match definition" - RoboN1X - 18.06.2012

check your defines, make sure its defined like:
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1



Re: dcmd returns "Number of Arguments does not match definition" - Mark™ - 18.06.2012

Quote:
Originally Posted by stormchaser206
Посмотреть сообщение
Bump
Post line 892 here.


Re: dcmd returns "Number of Arguments does not match definition" - stormchaser206 - 18.06.2012

Quote:
Originally Posted by Robo_N1X
Посмотреть сообщение
check your defines, make sure its defined like:
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Still doesn't work.


Re: dcmd returns "Number of Arguments does not match definition" - [MM]RoXoR[FS] - 18.06.2012

Post the script .