[Tutorial] How to make AFK system
#6

Quote:
Originally Posted by Rayan_black
View Post
It's easy..

pawn Code:
if(strcmp("fuck you",text,false) == 0)
{
    SendClientMessage(playerid, -1, Do not use bad words);
    return 0;
}
that's it.
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.
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: 1 Guest(s)