dcmd returns "Number of Arguments does not match definition"
#1

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

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

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

dcmd(v,1,cmdtext[]);
Reply
#5

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

Bump
Reply
#7

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

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

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.
Reply
#10

Post the script .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)