How can I make so invalid symbol's can't be used
#4

Quote:
Originally Posted by Shady91
so would that block out if someone typed, My gangname#

?
no , in that case use :
Код:
public OnPlayerText(playerid, text[])
{
    for(new s = 0; s < 128; s++) 
    {
    if (text == '#')
  	{
		SendClientMessage(playerid,COLOR_RED,"Invalid Symbol");
		return 0;
	}
	}
	return 1;
}
Reply


Messages In This Thread
How can I make so invalid symbol's can't be used - by shady91 - 13.04.2010, 19:58
Re: How can I make so invalid symbol's can't be used - by aircombat - 13.04.2010, 20:04
Re: How can I make so invalid symbol's can't be used - by shady91 - 13.04.2010, 20:09
Re: How can I make so invalid symbol's can't be used - by aircombat - 13.04.2010, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)