[Tutorial] How to make AFK system
#7

Quote:
Originally Posted by RealCop228
View Post
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.
I know that already, I just made a small mistake and thanks for bumping it I nearly forgot about it, here's the full working code:
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;
PS: Please I don't like to be called an idiot, or getting insulted.. you could've say it in a nicer way.
Reply


Messages In This Thread
How to make AFK system - by BlackHorse - 11.05.2013, 07:48
Re: How to make AFK system - by Giroud12 - 11.05.2013, 08:28
Re : Re: How to make AFK system - by Rayan_black - 11.05.2013, 09:43
Re: How to make AFK system - by Rimmon - 14.05.2013, 16:05
AW: How to make AFK system - by Blackazur - 14.05.2013, 16:08
Re: How to make AFK system - by Scenario - 14.05.2013, 16:38
Re : Re: How to make AFK system - by Rayan_black - 14.05.2013, 16:54
Re: AW: How to make AFK system - by Rimmon - 15.05.2013, 11:23

Forum Jump:


Users browsing this thread: 2 Guest(s)