SA-MP Forums Archive
warning 202: 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=82238)



warning 202: number of arguments does not match definition - elvago - 17.06.2009

pawn Код:
warning 202: number of arguments does not match definition
9 Warnings.

All This.. My line's is


pawn Код:
1.- KickPlayer(playerid,"Error al ingresar al servidor nick");
2.- KickPlayer(playerid,string);
3.- KickPlayer(playerid,string);
4.- KickPlayer(playerid,string);
5.- KickPlayer(i,string);
6.- KickPlayer(i,string);
7.- KickPlayer(playerid,string);
8.- return KickPlayer(player1,string);
9.- print(string); return KickPlayer(player1,string); }
PD: Sorry my bad english


Re: warning 202: number of arguments does not match definition - Grim_ - 17.06.2009

The 'KickPlayer' does not have the string[] param. So, that is why they are a mismatch. Use it like this:
pawn Код:
KickPlayer(playerid);



Re: warning 202: number of arguments does not match definition - elvago - 17.06.2009

sorry, but where i need change?..

PD: Sorry my bad english



Re: warning 202: number of arguments does not match definition - Grim_ - 17.06.2009

Everywhere you have this:
pawn Код:
KickPlayer(playerid, string);
Change all of those to:
pawn Код:
KickPlayer(playerid);
since the KickPlayer fucntion does not have the string[] param.
https://sampwiki.blast.hk/wiki/KickPlayer


Re: warning 202: number of arguments does not match definition - elvago - 17.06.2009

The webpage are in Blank.. And the code now send 13 Warnings.


Re: warning 202: number of arguments does not match definition - elvago - 17.06.2009

Thanks, i can repair the problem i define 2 try one public lol


Re: warning 202: number of arguments does not match definition - Grim_ - 17.06.2009

Sorry, I did everything wrong, it's 1:22 am here

It's
pawn Код:
Kick(playerid);
with just the playerid param, so you can't use string anyways.


Re: warning 202: number of arguments does not match definition - elvago - 17.06.2009

Quote:
Originally Posted by Swift_
Sorry, I did everything wrong, it's 1:22 am here

It's
pawn Код:
Kick(playerid);
with just the playerid param, so you can't use string anyways.

na, dont have problem the function
pawn Код:
KickPlayer
are connect to sql database.. for this i call this funtion..

PD: Sorry my bad english again. can closed this topic



Re: warning 202: number of arguments does not match definition - Luka P. - 17.06.2009

Copy KickPlayer funciton


Re: warning 202: number of arguments does not match definition - elvago - 18.06.2009

can closed i repair the problem xDDD