View Single Post
OZZI
Junior Member
Join Date: Feb 2021
Old 04-04-2021 , 06:56   Re: Checking for flag in script
Reply With Quote #6

When I try to compile the code I get the error: plugin.sp(175) : error 100: function prototypes do not match

How can i fix it?

PHP Code:
public Action TimerHit_CallBack(Handle timerint useridint client)
{
    static 
int attacker;
    if(!(
attacker GetClientOfUserId(userid)))
        return 
Plugin_Stop;
    
    if(!(
CheckCommandAccess(client"reservation_admin"ADMFLAG_RESERVATIONtrue))) {
            return 
Plugin_Stop;
        }

    
g_bIsFired[attacker] = false;
    for(
int i 1<= MaxClientsi++) if(IsClientInGame(i) && g_iTotalSGDamage[attacker][i])
    {
        
ShowPRTDamage(attackerig_iTotalSGDamage[attacker][i], g_bIsCrit[attacker][i], true);
        
g_iTotalSGDamage[attacker][i] = 0;
        
g_bIsCrit[attacker][i] = false;
    }

    return 
Plugin_Continue;


Last edited by OZZI; 04-04-2021 at 06:57.
OZZI is offline