SA-MP Forums Archive
Number Of Arguments Doesn't 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: Number Of Arguments Doesn't Match Definition (/showthread.php?tid=318708)



Number Of Arguments Doesn't Match Definition - Mr.Fames - 16.02.2012

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


Re: Number Of Arguments Doesn't Match Definition - [ABK]Antonio - 16.02.2012

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


Re: Number Of Arguments Doesn't Match Definition - Chris White - 16.02.2012

Can you please post the line where the error occurs at?


Re: Number Of Arguments Doesn't Match Definition - Mr.Fames - 16.02.2012

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



Re: Number Of Arguments Doesn't Match Definition - [ABK]Antonio - 16.02.2012

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

SetPlayerFacingAngle(playerid, 353.3083);


Re: Number Of Arguments Doesn't Match Definition - Wesley221 - 16.02.2012

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.


Re: Number Of Arguments Doesn't Match Definition - emokidx - 16.02.2012

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


Re: Number Of Arguments Doesn't Match Definition - Chris White - 16.02.2012

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.


Re: Number Of Arguments Doesn't Match Definition - Mr.Fames - 16.02.2012

ok guys it worked thx


Re: Number Of Arguments Doesn't Match Definition - Mark™ - 16.02.2012

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);