Flag system doesn't work anymore
#1

Hello, I have edited my flag system but getting 2 warnings, can anyone tell me what is wrong here ?


Код:
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")
The code:

PHP код:
public AddFlag(playerid,adminid,reason[])
{
    new 
month,day,year;
    
getdate(year,month,day);
    new 
playername[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayernamesizeof(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;
    }

Reply


Messages In This Thread
Flag system doesn't work anymore - by IndependentGaming - 21.09.2016, 19:04
Re: Flag system doesn't work anymore - by Stinged - 21.09.2016, 19:17
Re: Flag system doesn't work anymore - by J0sh... - 21.09.2016, 19:18
Re: Flag system doesn't work anymore - by IndependentGaming - 21.09.2016, 19:19
Re: Flag system doesn't work anymore - by jlalt - 21.09.2016, 19:28
Re: Flag system doesn't work anymore - by IndependentGaming - 21.09.2016, 19:38
Re: Flag system doesn't work anymore - by IndependentGaming - 21.09.2016, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)