Text Filter / STRFIND
#1

I have this code at the top for a ANTI Swear word thing.

pawn Код:
new Filter[][] =
{
    "hacker",
    "haxx",
    "hax",
    "cheater",
    "cheat",
    "hacks",
    "speed hack"
};
And this under onplayertext.

pawn Код:
if(strfind(text,Filter,true) != -1 ) return 0;
I get errored saying Error 048: array dimensions do not match
Reply
#2

Код:
for(new d; d<sizeof(Filter); d++)
	if(strfind(text,Filter[d],true) != -1 )
		return 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)