bad words help
#6

Not exists anyone errors in this code.

pawn Код:
if(!strcmp("fucker",text,true) || !strcmp("gay",text,true) || !strcmp("fucku",text,true))
{
format(string, sizeof(string),"%s(%d): I feeell so good! I h8 badwords!", pInfo[playerid][name],playerid);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
Look how would in OnPlayerText:

pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp("fucker",text,true) || !strcmp("gay",text,true) || !strcmp("fucku",text,true))
{
new string[128];
format(string, sizeof(string),"%s(%d): I feeell so good! I h8 badwords!", pInfo[playerid][name],playerid);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
return 1;
}
Reply


Messages In This Thread
bad words help - by ~Dangun! - 30.01.2010, 22:42
Re: bad words help - by LuxurioN™ - 30.01.2010, 22:51
Re: bad words help - by ~Dangun! - 30.01.2010, 22:55
Re: bad words help - by ray187 - 30.01.2010, 22:57
Re: bad words help - by ~Dangun! - 30.01.2010, 22:57
Re: bad words help - by LuxurioN™ - 30.01.2010, 23:05

Forum Jump:


Users browsing this thread: 2 Guest(s)