Can you edit the stock so it will show how many times it replaced something?
Here's the simple fix for it:
Code:
stock replace_all(string[], len, what[], with[])
{
new withlen, charnum = 0, occurrences = 0;
withlen = strlen(with);
while (replace(string[charnum], len, what, with) != 0)
{
charnum += contain(string[charnum], with) + withlen;
occurrences++;
}
return occurrences;
}
__________________