Number Of Arguments Doesn't Match Definition
#1

hey guys what is the solution for Number Of Arguments Doesn't Match Definition And what causes it
Reply
#2

Well...If you do say
pawn Код:
SendClientMessage(playerid, "My message");
It will give you that warning because you're missing an argument (color)
Reply
#3

Can you please post the line where the error occurs at?
Reply
#4

then what am i missing here
pawn Код:
SetPlayerPos(playerid, 1704.9041,-1022.3690,23.9063,353.3083);
Reply
#5

You aren't missing something, you included the facing angle,

SetPlayerFacingAngle(playerid, 353.3083);
Reply
#6

You got 1 argument to much. SetPlayerPos only uses playerid, x, y, z. You got the facing angle in it aswell; use the function 'SetPlayerFacingAngle' for that.
Reply
#7

i think the error itself says much
if the arguments are less or more, or if an integer is req. and you insert a string it gives that error

eg
pawn Код:
SendClientMessage(playerid,"hi"); //no color, argument mismatch
new str0[128];
AddVehicleComponent(Sultan2,str0); // str0 is not an integer
SetPlayerPos(playerid, 1704.9041,-1022.3690,23.9063,353.3083);
extra

also search please
https://sampforum.blast.hk/showthread.php?tid=274028
Reply
#8

idk. It sounds weird, but I think it has something t do with spaces after commas :P .
I think you might try this:
pawn Код:
SetPlayerPos(playerid, 1704.9041, -1022.3690, 23.9063, 353.3083);
else, I don't know.
Reply
#9

ok guys it worked thx
Reply
#10

Quote:
Originally Posted by Mr.Fames
Посмотреть сообщение
then what am i missing here
pawn Код:
SetPlayerPos(playerid, 1704.9041,-1022.3690,23.9063,353.3083);
pawn Код:
SetPlayerPos(playerid, 1704.9041,-1022.3690,23.9063);
SetPlayerFacingAngle(playerid,353.3083);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)