mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
This commit is contained in:
parent
02fb807a0b
commit
1b9ef4d268
@ -221,11 +221,15 @@ stock remove_filepath(szFilePath[], szFile[], pMax)
|
||||
stock replace_all(string[], len, what[], with[])
|
||||
{
|
||||
new withlen, charnum = 0;
|
||||
new total = 0;
|
||||
|
||||
withlen = strlen(with);
|
||||
|
||||
while (replace(string[charnum], len, what, with) != 0)
|
||||
{
|
||||
charnum += contain(string[charnum], with) + withlen;
|
||||
total++;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user