Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock IsAdvertisement(const text[])
- {
- new len = strlen(text), chance = 0;
- for(new i = 0; i < len; i ++)
- {
- if(i + 1 != len)
- {
- if(text[i] == '.' && (text[i + 1] >= '0' && text[i + 1] <= '9'))
- {
- chance ++;
- continue;
- }
- if(chance == 3)
- {
- if(text[i] == ':' && (text[i + 1] >= '0' && text[i + 1] <= '9')) return 1;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment