Thread: [Tutorial] How to make AFK system
View Single Post
Old 14/05/2013, 05:38 PM   #6
Scenario's Avatar
Join Date: Feb 2010
Location: Heaven
Posts: 7,809
Reputation: 701
Default Re: How to make AFK system

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.
Scenario is offline   Reply With Quote