21.09.2016, 19:04
Hello, I have edited my flag system but getting 2 warnings, can anyone tell me what is wrong here ?
The code:
Код:
gamemodes\Roleplay.pwn(60251) : warning 235: public function lacks forward declaration (symbol "AddFlag") gamemodes\Roleplay.pwn(60261) : warning 235: public function lacks forward declaration (symbol "RemoveFlag")
PHP код:
public AddFlag(playerid,adminid,reason[])
{
new month,day,year;
getdate(year,month,day);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(PlayerInfo[playerid][pFlag],128,"%s - %s (%d/%d/%d)",reason,GetPlayerNameEx(adminid),month,day,year);
}
// RemoveFlag Function (playerid)
public RemoveFlag(playerid)
{
if(strlen(PlayerInfo[playerid][pFlag]) > 0)
{
format(PlayerInfo[playerid][pFlag],128,"");
return 1;
}
else
{
return 0;
}
}