Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // IsCharInString
- //Usage if(IsCharInString(inputtext,'='))
- //Returns
- //True if string contains current character
- //False if string not contains current character
- stock IsCharInString(string[],character)
- {
- for(new c;c <= strlen(string);c++)
- {
- if(string[c] == character) return true;
- }
- return false;
- }
- //IsStringInString
- //Usage if(IsStringInString(string,"fuck"))
- //Returns
- //True if string contains string2
- //False if string not contins string2
- stock IsStringInString(string[],string2[])
- {
- if(strfind(string,string2) != -1) return true;
- else return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement