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)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=367685)



warning 202: number of arguments does not match definition - Adam_Hardy - 10.08.2012

Код:
pwn(13259) : warning 202: number of arguments does not match definition
pwn(13259) : warning 202: number of arguments does not match definition
pwn(13259) : warning 202: number of arguments does not match definition
pwn(13259) : warning 202: number of arguments does not match definition
Код:
line13259: format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", GetPlayerName(plo), GetPlayerName(playerid));



Re: warning 202: number of arguments does not match definition - phillip875 - 10.08.2012

pawn Код:
new playan[MAX_PLAYER_NAME];
GetPlayerName(playerid,playan,sizeof(playan));
format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", playan, GetPlayerName(playerid));



Re : Re: warning 202: number of arguments does not match definition - Adam_Hardy - 10.08.2012

Quote:
Originally Posted by phillip875
Посмотреть сообщение
pawn Код:
new playan[MAX_PLAYER_NAME];
GetPlayerName(playerid,playan,sizeof(playan));
format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", playan, GetPlayerName(playerid));
didn't work


Re: warning 202: number of arguments does not match definition - phillip875 - 10.08.2012

Right..

pawn Код:
new playan[MAX_PLAYERS],adminn[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminn,sizeof(adminn));
GetPlayerName(adminid,playan,sizeof(playan));
format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", playan, adminn);
Change adminid to the variable that is holding the target player id.


Re : Re: warning 202: number of arguments does not match definition - Adam_Hardy - 10.08.2012

Quote:
Originally Posted by phillip875
Посмотреть сообщение
Right..

pawn Код:
new playan[MAX_PLAYERS],adminn[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminn,sizeof(adminn));
GetPlayerName(adminid,playan,sizeof(playan));
format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", playan, adminn);
Change adminid to the variable that is holding the target player id.
There u go:




Re: warning 202: number of arguments does not match definition - phillip875 - 10.08.2012

pawn Код:
new playan[MAX_PLAYERS],adminn[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminn,sizeof(adminn));
GetPlayerName(plo,playan,sizeof(playan));
format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", playan, adminn);
I told you to update the adminid to your target player variable which was plo..


Re : warning 202: number of arguments does not match definition - Adam_Hardy - 10.08.2012

dude ! idk how :/


Re: warning 202: number of arguments does not match definition - xSkullx - 10.08.2012

In top of gamemode:
#pragma tabsize 0