Raised This Month: $ Target: $400
 0% 

Issues with amx_addmenuitem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-19-2013 , 23:39   Issues with amx_addmenuitem
Reply With Quote #1

I am trying to access my botmenu via the amxmodxmenu frontend.

Code:
// Adding to "amxmodmenu":
// Usage: "amx_addmenuitem <menu text> <menu command> <access flags> <plugin name>"

// Example: (be sure to use quotes around parameters with spaces!)
//
// amx_addmenuitem "Weapon Arena" "weaponarena_menu" "hu" "Weapon Arena"
// amx_addclientmenuitem "Warcraft 3" "war3menu" "" "Warcraft 3 XP"
This is my entry to the "custommenuitems.cfg"
Code:
amx_addmenuitem "Bot Control" "botmenu" "u" "botcontrol"
and attached is the very simple plugin that is used as the menu.

For both full admin and member admin
Code:
 Full admin:
abcdefghijklmnopqrstu

Member Admin:
cdefiju
It displays on the menu but is disabled for both.

any ideas on what i am doing wrong?


EDIT: So The examples are wrong it needs the .amxx as the plugin name....... Corrected below
Code:
amx_addmenuitem "Bot Control" "botmenu" "u" "botcontrol.amxx"
Attached Files
File Type: sma Get Plugin or Get Source (botcontrol.sma - 668 views - 1.0 KB)

Last edited by Doc-Holiday; 01-19-2013 at 23:48.
Doc-Holiday is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-20-2013 , 13:54   Re: Issues with amx_addmenuitem
Reply With Quote #2

Quote:
Originally Posted by Doc-Holiday View Post
EDIT: So The examples are wrong it needs the .amxx as the plugin name....... Corrected below
Does this imply that you have it working now? Also, it can be either one, the name of the plugin or the plugin's filename. See the documentation for is_plugin_loaded().
__________________
fysiks is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-21-2013 , 00:05   Re: Re: Issues with amx_addmenuitem
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Does this imply that you have it working now? Also, it can be either one, the name of the plugin or the plugin's filename. See the documentation for is_plugin_loaded().
Yea worked now after I placed it with .amxx I copied and pasted the name from the file and the register plugin neither worked then I found a plugin that explained how to do it for his plugin and it worked
Doc-Holiday is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-21-2013 , 00:21   Re: Issues with amx_addmenuitem
Reply With Quote #4

Plugin Name works just fine, menufront uses it to internally build the default choices. Your problem is that you are not using the correct value. You should be using "Bot Control Menu" as that is the name of your plugin, not "botcontrol"
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply


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 13:24.


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