Get the Content of a Chat Message
Hi guys,
in my newest script i want to get the content of a chat message. e.g. Someone says noob then the script will return a message that a bad word was said. How can I do that ? KillhemAll :wink: |
Re: Get the Content of a Chat Message
something like this ?
PHP Code:
|
Re: Get the Content of a Chat Message
More efficient this way
PHP Code:
|
Re: Get the Content of a Chat Message
Thank you all +Karma . There should be more people like you thx
|
Re: Get the Content of a Chat Message
If you're going for ultramax efficiency, you may want to add a secondary handle_say type function to implement string slicing, that way you can hack off the "say " part of the said[] string. If you have a huge list of bad words to check against, I can imagine it would be checking those first four irrelevant cells countless times.
...or "say_team" for the say_team one. Also, not sure there's a reason to use a charsmax function when you just defined how large the array was and could easily type it in... |
| All times are GMT -4. The time now is 09:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.