Normal Chat not working
Here is my code ( Totally Hardcoded not for public use )
PHP Code:
Now here is problem i m facing : - Admin chat ( Acc to cases ) working perfect - Normal player ( Non admin) chat not showing up :/ I have added case to handle normal chat but still not working ... Most probably i think its the return stopping to use normal chat .. Help Pro people .. |
Re: Normal Chat not working
Just use !(is_admin) and format for that!
|
Re: Normal Chat not working
Quote:
|
Re: Normal Chat not working
Try using my tag user prefix you can set tags by flags
|
Re: Normal Chat not working
Natsheh i know there are many seriously better options
But i just want to know wht is wrong in my shit scripting to learn and have knwledge As i wrote it under 10-15 mins and cant spot my mistakes for hours .. thats my talent :( |
Re: Normal Chat not working
Quote:
Try to read my user tag prefix also its not perfectly optimized due careless. |
Re: Normal Chat not working
You have a lot of redundant code and it is poorly organized. This makes it easier to make mistakes and harder to find and fix those mistakes.
Here is a much better way to organize the code: PHP Code:
Also, if you are meaning to not do anything (and let the message continue like normal) when they are not one of the ones that needs a tag then you can simply return PLUGIN_CONTINUE if type == 0 instead of PLUGIN_HANDLED in checkMsg(). |
Re: Normal Chat not working
Thanks fysiks ☺️
|
Re: Normal Chat not working
Quote:
|
Re: Normal Chat not working
Quote:
|
| All times are GMT -4. The time now is 04:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.