RSSy MYGO.pl Opublikowano Styczeń 1, 2021 o 13:41 RSSy Udostępnij Opublikowano Styczeń 1, 2021 o 13:41 Hi. I have This code. This code detects the sentences I want in the chat and does something. But the problem is that if there is a space in a sentence, the code can not recognize it. This code only recognizes words and is not able to recognize sentences. This is my first problem. The second problem is that this code only recognizes words sent by users. I want, for example, if the server also sends words in the chat, the code can recognize it. Is this possible? Thanks. Code : PHP Code: public ChatGlobalCommand(id){ static lastsaid[512], said[512] read_args(said, 512) if(equal(said, lastsaid)) return PLUGIN_CONTINUE for(new i = 0; i < sizeof BAD_WORDS; i++) { if(containi(said, BAD_WORDS[i])) replace_all(said, charsmax(said), BAD_WORDS[i], "***") } formatex(lastsaid, charsmax(lastsaid), "%s", said) client_cmd(id, "say %s", said) return PLUGIN_HANDLED} Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi