23.06.2010, 00:59
Код:
new BadWords[][] = { "shit", "fuck" //etc. };
Код:
new placeholder; for(new i = 0; i < sizeof BadWords; i++) { placeholder = strfind(text, BadWords[i], true); if(placeholder != -1) { for(new x = placeholder; x < placeholder + strlen(BadWords[i]); x++) { text[x] = '*'; } } }