strfind won't work
#1

Hi!

I have this:

Код:
			if(strfind(inputtext, "0", true) || strfind(inputtext, "1", true) || strfind(inputtext, "2", true) || strfind(inputtext, "3", true) || strfind(inputtext, "4", true) || strfind(inputtext, "5", true) || strfind(inputtext, "6", true) || strfind(inputtext, "7", true) || strfind(inputtext, "8", true) || strfind(inputtext, "9", true) ||
   			strfind(inputtext, "й", true) || strfind(inputtext, "у", true) || strfind(inputtext, "ц", true) || strfind(inputtext, "ő", true) || strfind(inputtext, "н", true) || strfind(inputtext, "ъ", true) || strfind(inputtext, "ь", true) || strfind(inputtext, "ű", true) || strfind(inputtext, "б", true) ||
   			strfind(inputtext, "hitler", true) || strfind(inputtext, "rambo", true) || strfind(inputtext, "buzi", true) || strfind(inputtext, "kocsog", true) || strfind(inputtext, "geci", true) || strfind(inputtext, "fasz", true) || strfind(inputtext, "fos", true) || strfind(inputtext, "shit", true) || strfind(inputtext, "fuck", true))
		 	{
				SendClientMessage(playerid, COLOR_TOMATO, "Error: The text cannot contain special characters!");
		 	}
		 	else
			{
	 		        SendClientMessage(playerid, COLOR_WHITE, "You're cool");
	 		}
But whenever I type anything in the field the error message pops up. Even if I write only an 'a' letter..

Can anyone help please?
Reply


Messages In This Thread
strfind won't work - by Extasy4 - 13.08.2013, 16:57
Re: strfind won't work - by Misiur - 13.08.2013, 17:00
Re: strfind won't work - by Extasy4 - 13.08.2013, 17:14
Re: strfind won't work - by Misiur - 13.08.2013, 17:23
Re: strfind won't work - by Extasy4 - 13.08.2013, 17:29
Re: strfind won't work - by Extasy4 - 13.08.2013, 17:34
Re: strfind won't work - by Misiur - 15.08.2013, 12:06
Re: strfind won't work - by Extasy4 - 15.08.2013, 13:21
Re: strfind won't work - by Extasy4 - 17.08.2013, 21:31
Re: strfind won't work - by cessil - 17.08.2013, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)