04.08.2012, 13:35
Lol.... This is the inverse of my function. See the explanation.
pawn Code:
for(new i = strlen(string); i > 0; i--) // making a loop, telling the loop to start from the end of the string, and go down until 0.
if(!('A' <= string[i] <= 'Z') // in case is "A" bigger or equal to the position it was found(the pos that is located the character) or "Z" is less or equal to the position it was found.(the pos that is located the character) - basically,inverting the signals.
&& !('a' <= string[i] <= 'z') // same thing as above...
&& !('0' <= string[i] <= '9'))// same thing as above, but with numbers...
return false; // return false... in case of any of these statements are true.
return true; // returning true, if all of these statements are false.