15.08.2018, 10:28 
	
	
	
		am getting a error
	
	
	
	
Код:
error 001: expected token: ";", but found "if"
Код:
public OnPlayerText(playerid, text[])
{
    SpamTimer[playerid] = SetTimerEx("DecreaseSpam",MAX_DECREASECOUNT*1000,1,"d",playerid)
    if(PlayerSpam[playerid] < MAX_SPAM)
    {
    PlayerSpam[playerid] ++;
    }
    else if(PlayerSpam[playerid] >= MAX_SPAM)//If the player spam is bigger than or equal to the max spam allowed!
    {
    new TalkString[120],string[120];
    //WE FORMAT THE STRING
    format(string,sizeof(string),"[ANTI-CHEAT] Player: %s ID: %d Has been Kicked Reason: SPAM",GetName(playerid),playerid);
    //THEN WE SEND IT TO EVERYONE!
    SendClientMessageToAll(-1,string);
    format(TalkString,sizeof(TalkString),"You Have Been Kicked By Anti Cheat!\nReason:SPAM");
    //we are going to show the dialog to the player
    ShowPlayerDialog(playerid,DIALOG_ANTI,DIALOG_STYLE_MSGBOX,"Anti Cheat!",TalkString,"Okay","");
    //we set the playerspam to 0 so it wont mix with other players when they connect!
    PlayerSpam[playerid] = 0;
    //we kill the timer!
    KillTimer(SpamTimer[playerid]);
    //Then we kick the player!
    Kick(playerid);
    }
	return 1;
}
Код:
line 270 if(PlayerSpam[playerid] < MAX_SPAM)





