warning 202: number of arguments does not match definition
#1

Код:
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));
Reply
#2

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));
Reply
#3

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
Reply
#4

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.
Reply
#5

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:

Reply
#6

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..
Reply
#7

dude ! idk how :/
Reply
#8

In top of gamemode:
#pragma tabsize 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)