Raised This Month: $ Target: $400
 0% 

ML_NOTFOUND please help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2inspyr
SourceMod Donor
Join Date: Dec 2004
Old 10-14-2005 , 02:22   ML_NOTFOUND please help
Reply With Quote #1

ok umm im creating a version of amxx for clanservers, to make it easier for warring and so on..its for my own use but i may release the package when im done.

at present im messing around with the amxx_music addon, and im attempting to create an amx menu for it with access level Z(ADMIN_USER) so users dont have 2 look through the motd at a play list, they have it in an amx menu.

here is my script so far..as u will see i have already added a warmenu to this and that menu works fine.

this is my what ive edited in the CMDMENU.sma

/* Commands Menus */

#define MAX_CMDS_LAYERS 5

new g_cmdMenuName[MAX_CMDS_LAYERS][] =
{
"CMD_MENU",
"CONF_MENU",
"SPE_MENU",
"WAR_MENU",
"MUSIC_MENU"
}

new g_cmdMenuCmd[MAX_CMDS_LAYERS][] =
{
"amx_cmdmenu",
"amx_cfgmenu",
"amx_speechmenu",
"amx_warmenu",
"amx_musicmenu"
}

new g_cmdMenuCfg[MAX_CMDS_LAYERS][] =
{
"cmds.ini",
"configs.ini",
"speech.ini",
"war.ini",
"music.ini"
}

new g_cmdMenuHelp[MAX_CMDS_LAYERS][] =
{
"- displays commands menu",
"- displays configs menu",
"- displays speech menu",
"- displays war menu",
"- displays music menu"
}

/* End of Commands Menu */

then i have the MENUFRONT.sma

AddDefaultMenus()
{
AddMenuLang("KICK_PLAYER", "amx_kickmenu", ADMIN_KICK, "Players Menu")
AddMenuLang("BAN_PLAYER", "amx_banmenu", ADMIN_BAN, "Players Menu")
AddMenuLang("SLAP_SLAY", "amx_slapmenu", ADMIN_SLAY, "Players Menu")
AddMenuLang("WAR_MENU", "amx_warmenu", ADMIN_MENU, "Commands Menu")
AddMenuLang("MUSIC_MENU", "amx_musicmenu", ADMIN_USER, "Commands Menu")

AddMenuLang("TEAM_PLAYER", "amx_teammenu", ADMIN_LEVEL_A, "Players Menu")
AddMenuLang("CHANGEL", "amx_mapmenu", ADMIN_MAP, "Maps Menu")
AddMenuLang("VOTE_MAPS", "amx_votemapmenu", ADMIN_MAP, "Maps Menu")
AddMenuLang("SPECH_STUFF", "amx_speechmenu", ADMIN_MENU, "Commands Menu")
AddMenuLang("CLIENT_COM", "amx_clcmdmenu", ADMIN_LEVEL_A, "Players Menu")
AddMenuLang("SERVER_COM", "amx_cmdmenu", ADMIN_MENU, "Commands Menu")
AddMenuLang("CVARS_SET", "amx_cvarmenu", ADMIN_CVAR, "Commands Menu")
AddMenuLang("CONFIG", "amx_cfgmenu", ADMIN_MENU, "Commands Menu")
AddMenuLang("LANG_SET", "amx_langmenu", ADMIN_CFG, "Multi-Lingual System")
AddMenuLang("STATS_SET", "amx_statscfgmenu", ADMIN_CFG, "Stats Configuration")
AddMenuLang("PAUSE_PLUG", "amx_pausecfgmenu", ADMIN_CFG, "Pause Plugins")
AddMenuLang("RES_WEAP", "amx_restmenu", ADMIN_CFG, "Restrict Weapons")
AddMenuLang("TELE_PLAYER", "amx_teleportmenu", ADMIN_LEVEL_A, "Teleport Menu")
}

as you can see ive added the WAR_MENU which worked like a charm...but when i added the MUSIC_MENU i got this error

ML_NOTFOUND MUSIC_MENU

can anyone see an error in there??

EDIT: i forgot 2 mention the commands in the menu i made do still work...and i can access the music menu..just the name in the amxmodmenu comes up as ML_NOTFOUND MUSIC_MENU

Regards
Mitch
__________________
hmmms........
2inspyr is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 10-15-2005 , 19:29  
Reply With Quote #2

A ML_NOTFOUND error means that the language key being used to display the text could not be found.

If you don't know what I'm talking about, please post your entire script and enclose it in the Small tags.
Brad is offline
2inspyr
SourceMod Donor
Join Date: Dec 2004
Old 10-15-2005 , 20:15  
Reply With Quote #3

ah, silly me thanks...i forgot to add MUSIC_MENU in the CMDMENU lang text under [EN] haha thanks for that, sorry for posting about that error my stupid mistake

Regards
Mitch
__________________
hmmms........
2inspyr 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 23:42.


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