Blocking language at OnPlayerText
#8

The problem is most likely that you are checking the 45th character in the text passed to OnPlayerText. Are you trying to see if the text is just simply in there? If so:
pawn Код:
if( strfind( text, "§", true ) != -1 )
{
   SendClientMessage( playerid, WHITE, "You can't use this language!" );
   return 0;
}
What exactly are you trying to accomplish? If you provide me with an answer to that question, along with your OnPlayerText callback, I may be able to assist you further.
Reply


Messages In This Thread
Blocking language at OnPlayerText - by yanir3 - 26.01.2011, 06:09
Re: Blocking language at OnPlayerText - by Retardedwolf - 26.01.2011, 06:09
Re: Blocking language at OnPlayerText - by PeteShag - 26.01.2011, 06:12
Re: Blocking language at OnPlayerText - by Grim_ - 26.01.2011, 06:13
Re: Blocking language at OnPlayerText - by yanir3 - 26.01.2011, 06:15
Re: Blocking language at OnPlayerText - by Grim_ - 26.01.2011, 06:16
Re: Blocking language at OnPlayerText - by yanir3 - 26.01.2011, 06:34
Re: Blocking language at OnPlayerText - by Grim_ - 26.01.2011, 06:39

Forum Jump:


Users browsing this thread: 1 Guest(s)