Bracket Error
#1

~Fixed~
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(GetPVarInt(playerid,"Mute") == 1)
    {
        SendClientMessage(playerid,COLOR_RED,"You have been muted by an Admin. You can't talk anymore.");
        return 0;
    }
   
           new stringbig[356];

            format(stringbig,sizeof(stringbig),"[%d]: %s",playerid, text);
            SendPlayerMessageToAll(playerid,stringbig);

             if(strfind(text, ":", true) != -1) {
                new i_numcount, i_period, i_pos;
                while(text[i_pos]) {
                    if('0' <= text[i_pos] <= '9') i_numcount ++;
                    else if(text[i_pos] == '.') i_period ++;
                    i_pos++;
                    }
               } // missed a bracket here (MIKE_PETERSON)    
    if(chat == true)
    {
        for(new i=0;i<sizeof BadWord;i++)
        {
            if(strfind(text,BadWord[i],true) != -1)
            {
                format(str,144,"[Insults] Kick: %s. [Reason: Shh]",PlayerName[playerid]);
                SendClientMessageToAll(COLOR_ORANGE,str);
                Kick(playerid);
            }
        }
    }
    else if(chat == false)
    {
        SendClientMessage(playerid,COLOR_ORANGE,"Chat has been deactivated by an Admin.");
        return 0;
    }
    return 0;
}
Reply
#3

Thank you so much! Topic can be closed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)