Valid Chars
#1

Hi. I have this code for my rename command

Код:
stock IsValidChar(character[])
{
  for(new i; i < strlen(character); i++)
  {
  if(character[i] < 36 || character[i] > 36 && character[i] < 40 ||
  character[i] > 41 && character[i] < 46 || character[i] > 46 &&
  character[i] < 48 || character[i] > 57 && character[i] < 64 ||
  character[i] > 91 && character[i] < 91 || character[i] > 93 &&
  character[i] < 93 || character[i] > 95 && character[i] < 95 ||
  character[i] > 95 && character[i] < 97 || character[i] > 122) return 0;
  }
  return 1;
}
it works all fine but the = char is not in this code... how to enable the = char in this code ?
Reply


Messages In This Thread
Valid Chars - by Brawl - 10.03.2010, 17:26
Re: Valid Chars - by pen_theGun - 10.03.2010, 18:43
Re: Valid Chars - by Brawl - 11.03.2010, 04:35
Re: Valid Chars - by pen_theGun - 11.03.2010, 06:35
Re: Valid Chars - by Brawl - 27.03.2010, 10:04

Forum Jump:


Users browsing this thread: 2 Guest(s)