Ewwe

IsCharInString

Mar 4th, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.31 KB | None | 0 0
  1. // IsCharInString
  2. //Usage if(IsCharInString(inputtext,'='))
  3. //Returns
  4. //True if string contains current character
  5. //False if string not contains current character
  6.  
  7. stock IsCharInString(string[],character)
  8. {
  9.     for(new c;c <= strlen(string);c++)
  10.     {
  11.         if(string[c] == character) return true;
  12.     }
  13.     return false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment