Weird problem.
Hey guys, I recently made this plugin for my server, and everything looked and worked well.
Today I entered a server and for everyone else it worked perfectly, but for me, I had the default say ( Like it returned continue ). Then my brother joined and he had the default say and everything was working fine for me. Im loosing my mind and have no clue whats happening, please help. Also please dont answer me something on the lines of "There is a plugin for this already" We had some problems with those so i made this one which does exactly what i need, no reason to use anything more. But if there are any code errors please be sure to point them out! PHP Code:
Thanks in advance |
Re: Weird problem.
Did you try "return PLUGIN_HANDLED;" to "return PLUGIN_HANDLED_MAIN" ?
I saw in "Admin Prefixes" - m0skVi4a, he use it ._. And look like you forgot "else" here PHP Code:
|
Re: Weird problem.
You can't use read_argv in say/say_team. You have to use trim() and strbreak() from string.inc. You can learn to use them by looking at the /donate plugin from Zombie Plague.
|
Re: Weird problem.
@VINAGHOST
Yes i did forget, but it worked even without it ( No double messages ) Such a simple plugin but nothing makes sense to me :( @edon1337 I dont get if you are saying i shouldnt or that it wont work. Because that part is working perfectly :D Im just having problems with why is my plugin acting like its returning PLUGIN_CONTINUE |
Re: Weird problem.
What you do is find out what the errors have in common. "Random" is not a cause, code doesn't behave that way. The code will do what you tell it to.
From what I can see you will get double messages whenever writing a team-message, and everyone will get it. To fix this you either put a "return PLUGIN_HANDLED" after the team message is sent or you put the ColorChat() for the main chat inside an else-statement. It is also possible another plugin is interfering but I would say that seems unlikely. |
Re: Weird problem.
I agree with you, but i fixed that mistake.
My question is why is the say message ever happening if my plugin is essentially this: PHP Code:
|
Re: Weird problem.
Simple answer: It doesn't.
|
Re: Weird problem.
Man you can see my code, ur answer like that doesnt help me at all :D Either find a mistake or tell me a plugin is interfearing or something else :D
|
Re: Weird problem.
How would I know? I don't know what plugins you're running.
Here's another problem: Code:
L 11/19/2017 - 22:22:51: Invalid player id 66Code:
have you even looked at the log? It's so much easier to debug things with the server console at least partially visible on screen so you see when bugs occur. That will help you to figure out the cause. |
Re: Weird problem.
Example ( Plugin is working normaly for everyone and all of a sudden one random admin doesnt have it working, instead they have a default say message: *DEAD* nick : message
And i dont know how to recreate it, or i would probably find a way to fix it, that is why this is so weird. |
| All times are GMT -4. The time now is 09:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.