using strfind- but CAPS Bug is a problem!
#1

ok first trying to prevent from words being used, seeing how this is very small
and usefull script, but lately i been getting buggers using CAPS like GAY, FAG,etc

how can i make it detect any word with or with out CAPS...
thanks in advanced <3

[partial coding but yea- SendErrMsg is a custom message function so ignore this, since it works fine.]
Код:
{ // Advanced String of block#2
		new gay = strfind(text,"gay");
		new fag = strfind(text,"fag");
		new jew = strfind(text,"jew");
		if(gay != -1 || fag != -1 || jew != -1)
		{
			SendErrMsg(playerid," You cannot use that word, it is not allowed in this server.");
			return 0;
		}

}
Reply


Messages In This Thread
using strfind- but CAPS Bug is a problem! - by Tenshi - 18.06.2009, 08:24
Re: using strfind- but CAPS Bug is a problem! - by BMUK - 18.06.2009, 08:28
Re: using strfind- but CAPS Bug is a problem! - by Tenshi - 18.06.2009, 08:59
Re: using strfind- but CAPS Bug is a problem! - by BMUK - 18.06.2009, 09:57
Re: using strfind- but CAPS Bug is a problem! - by PoWerZ - 18.06.2009, 10:09
Re: using strfind- but CAPS Bug is a problem! - by OmeRinG - 18.06.2009, 10:10
Re: using strfind- but CAPS Bug is a problem! - by Tenshi - 19.06.2009, 03:48

Forum Jump:


Users browsing this thread: 1 Guest(s)