27.08.2012, 14:10
strcount will an infinity loop, here is the fix:
Код:
stock strcount(const text[], const find[], bool:ignorecase = false) { new pos = 0 - strlen(find), found = 0; while(-1 != (pos = strfind(text, find, ignorecase, pos + strlen(find)))) found++; return found; }