Quote:
Originally Posted by Jefff
pawn Код:
stock AntiSwear(string[]) { new pos;
for(new x=0; x != sizeof(BadWords); x++) while((pos = strfind(string, BadWords[x], true)) != -1) for(new i = pos+1, j = pos + strlen(BadWords[x])-1; i < j; i++) string[i] = '*';
}
|
Thanks,works but I have changed the start pos to 0 and end with last character, cuz
i don't want:
i***t
i want, *****
Thank you! (: