20.04.2012, 11:05
Quote:
В обшем ищу хоршие антики (анти гм, брейк, тп авто к себе, частого телепорта, анти спидхак) |
во 2
Quote:
remove_bad_word(text[]) { static words[520][32] = { "текст", "площад" }; static exceptions[43][32] = { "текстолит", "площадка" }; for (new i, pos; i < sizeof(words); i++) { while ((pos = strfind(text, words[i], true, pos)) != -1) { for (new j, inpos; j < sizeof(exceptions); j++) { while ((inpos = strfind(exceptions[j], words[i], true)) != -1 ) { if (strfind(text, exceptions[j], true) != (pos - inpos)) { return 1;} else {break;}}}pos++;}}return 0;} |