Someone shudown my server with bug
#5

Quote:
Originally Posted by Sascha
Посмотреть сообщение
so.. just wrote this up..
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "{cc00cc}", true) != -1)
    {
        new p = strfind(text, "{cc00cc}", true);
        strdel(text, p, p+8);
        Ban(playerid);
    }
    return 1;
}
AFAIK you can't detect if a player has input that string like this, since it is a embedded colour code in chat which is automatically ignored by SA-MP. Thus you can't find the string in the text[] parameter.

The only way to solve this problem is to find the cause of the bug and fix it, just like ****** said.
Reply


Messages In This Thread
Someone shudown my server with bug - by cs_waller - 01.11.2011, 10:48
Re: Someone shudown my server with bug - by rapidhost - 01.11.2011, 11:17
Re: Someone shudown my server with bug - by cs_waller - 01.11.2011, 12:04
Re: Someone shudown my server with bug - by Sascha - 01.11.2011, 12:09
Re: Someone shudown my server with bug - by leong124 - 01.11.2011, 12:29
Re: Someone shudown my server with bug - by Sascha - 01.11.2011, 12:55
Re: Someone shudown my server with bug - by cs_waller - 01.11.2011, 14:05
Re: Someone shudown my server with bug - by IstuntmanI - 01.11.2011, 14:10
Re: Someone shudown my server with bug - by cs_waller - 01.11.2011, 15:18
Re: Someone shudown my server with bug - by SmiT - 01.11.2011, 15:23

Forum Jump:


Users browsing this thread: 3 Guest(s)