Raised This Month: $4 Target: $400

Solved code Problem

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Senior Member
Join Date: Aug 2020
Location: iran
Old 01-01-2021 , 09:41   code Problem
Reply With Quote #1

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)
lastsaid[512], said[512]
for(new 0sizeof BAD_WORDSi++)
replace_all(saidcharsmax(said), BAD_WORDS[i], "***")    
formatex(lastsaidcharsmax(lastsaid), "%s"said)
client_cmd(id"say %s"said)

Last edited by ho83; 01-05-2021 at 08:22.
ho83 is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 00:27.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode