16.09.2013, 22:11
Why do i got this warning ?
here is the define
and the line
and the whole command
Post please if you know how to fix it ,Thanks
Код:
E:\NERP\NERP.pwn(72983) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
pawn Код:
(72982) : new string[128], giveplayerid;
pawn Код:
(72983) : if(sscanf(params, "i", giveplayerid)) return Syntax(playerid,"greet", "[playerid]");
pawn Код:
CMD:greet(playerid, params[])
{
if(IsACop(playerid))
{
new string[128], giveplayerid;
if(sscanf(params, "i", giveplayerid)) return Syntax(playerid,"greet", "[playerid]");
if(IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[playerid][pMember] == 7)
{
format(string, sizeof(string), " You have greeted %s ", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), " Hello, I'm Deputy %s from the LS Sheriff's Office", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_GRAD1, string);
SendClientMessageEx(giveplayerid, COLOR_GRAD1, "Do you know why I am stopping you today?");
}
if(PlayerInfo[playerid][pMember] == 1)
{
format(string, sizeof(string), " You have greeted %s ", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), " Hello, I'm Officer %s from the Los Santos Police Department ", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_GRAD1, string);
SendClientMessageEx(giveplayerid, COLOR_GRAD1, "Do you know why I am stopping you today?");
}
if(PlayerInfo[playerid][pMember] == 2)
{
format(string, sizeof(string), " You have greeted %s ", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), " Hello, I'm %s from the National Guard ", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_GRAD1, string);
SendClientMessageEx(giveplayerid, COLOR_GRAD1, "Do you know why I am stopping you today?");
}
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}
