14.05.2013, 16:54
Quote:
Actually, that's incorrect. Nice try, but now you made yourself look like an idiot.
If you're making an "anti-swear" system, wouldn't you use strfind so you can find the curse words? Strcmp checks to make sure that the strings you're comparing are an EXACT match (with toggleable case sensitivity). Note that this was a rhetorical question. Next time, think before posting. |
pawn Code:
if((strfind(text," fuck you") != -1) || (strfind(text," FUCK YOU") != -1))
{
SendClientMessage(playerid,-1,"[WARNING]:Don't insult other people please.");
return 1;
}
return 0;