SA-MP Forums Archive
Warning Help! - 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: Warning Help! (/showthread.php?tid=609628)



Warning Help! - JuzDoiT - 14.06.2016

"warning 202: number of arguments does not match definition"


if (!isNumeric(tmp))
{
TargetID = ReturnUser(tmp, playerid);
if (TargetID == INVALID_PLAYER_ID)
{
return 1;
}


Re: Warning Help! - FuNkYTheGreat - 14.06.2016

Try this:
Код:
if (!isNumeric(tmp))
{
TargetID = ReturnUser(playerid, tmp);
if (TargetID == INVALID_PLAYER_ID)
{
return 1;
}



Re: Warning Help! - Dayrion - 14.06.2016

Which line get the warning?
202 - number of arguments does not match definition
At a function call, the number of arguments passed to the function (actual arguments) differs from the number of formal arguments declared in the function heading. To declare functions with variable argument lists, use an ellipsis (...) behind the last known argument in the function heading; for example: print(formatstring,...); (see page 7.