How come this menu won't pop up?
Well... I have a menu that will get the players alive, team, and skip bots. the team = terrorists. It will give health to terrorists to who ever you select.
Code:
public HMenu(id) { |
Re: How come this menu won't pop up?
how do you call HMenu() function?
|
Re: How come this menu won't pop up?
Show the whole code. If it's a long plugin (greater than 100 lines) then post it as an attachment.
|
Re: How come this menu won't pop up?
Heres the code;
Code:
public plugin_init() {thats it o.0 |
Re: How come this menu won't pop up?
Why can't people just post the whole freakin' code????? That's not the whole code.
On topic: Debug it. Find out what functions/conditions are actually being executed. |
Re: How come this menu won't pop up?
Quote:
And just put the checks in GetH right into HMenu. and return PLUGIN_HANDLED under your ColorChat statement. |
Re: How come this menu won't pop up?
First off it is the whole code. Want me to put it together for you?
Here.
Spoiler
that's it bro. debuging ; editing later on. |
Re: How come this menu won't pop up?
That will work fine. Are you testing in a server with other players ... non bot players since that's what you've specified in your player return?
|
Re: How come this menu won't pop up?
I've been testing mostly by myself. I thought the menu should still pop-up even if there's no terrorists? I will try as soon as my friend comes online. Thanks. I'll edit this post if it works fine then.
|
Re: How come this menu won't pop up?
A menu will only show if it has an item to show. And since there is no players on Terrorist nothing will come up. Try commenting out the CT team check just for the purpose of testing - Then go Terrorist, type /hpp, and you'll find that your name will come up in the menu and then you can use it on yourself.
|
| All times are GMT -4. The time now is 06:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.