06.05.2012, 18:53
My version of strDel
pawn Code:
strDel(string[],...)
{
new
num = numargs();
for(new i=1;i<num;i++)
{
// GetString
new str[25],a,b;
while(!false)
{
b = getarg(i,a);
if(b == 0) break;
str[a] = b;
a++;
}
//
new pos;
while((pos = strfind(string,str,true)) != -1)
{
strdel(string,pos,pos+strlen(str));
}
}
return true;
}