Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Character Checker v1.0 by BatisCorleone
- stock FoundBannedChar(s[])
- {
- for(new i;i<strlen(s);i++)
- {
- switch(s[i])
- {
- case 32,33,35,36,43..57,60..63,65..90,91,93,97..122: continue;
- default : return true;
- }
- }
- return false;
- }
- //This stock enables these characters : 0-9,a-z,A-Z,!#$+,-/<=>?[]
- //Usage of this stock : TextDraws which can be written or edited by a player.
- //return true - Found banned Char
- //return false - No banned Char found - the string is O.K.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement