10.03.2010, 18:43
pawn Код:
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 || character[i] == '=') return 0;
}
return 1;
}