Raised This Month: $ Target: $400
 0% 

Problem with menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
proffs
Senior Member
Join Date: Jul 2013
Old 07-15-2014 , 07:12   Re: Problem with menu
Reply With Quote #3

Quote:
Originally Posted by simanovich View Post
Show us the full code with the full error log
L 07/15/2014 - 02:47:43: Info (map "de_dust_igz") (file "addons/amxmodx/logs/error_20140715.log")
L 07/15/2014 - 02:47:43: [AMXX] Displaying debug trace (plugin "hnsshop.amxx", version "1.0")
L 07/15/2014 - 02:47:43: [AMXX] Run time error 4: index out of bounds
L 07/15/2014 - 02:47:43: [AMXX] [0] hnsshop.sma::_mMainMenuHandler (line 879)


PHP Code:
public _mcBlockidiMenuiItem )
{
    new 
szMenuName80 ], iTrash
    menu_item_getinfo
iMenuiItemiTrashszMenuName1szMenuNamecharsmaxszMenuName ), iTrash )
    
    
replace_allszMenuNamecharsmaxszMenmMainMenuHandleruName ), "\w""\d" )
    
    
menu_item_setnameiMenuiItemszMenuName )
    
    return 
ITEM_DISABLED
}

public 
_mMainMenuHandleridiMenuiItem )
{
    
    if( !
UTIL_CanUseMenuid ) || iItem == MENU_EXIT )
    {
        return 
PLUGIN_HANDLED
    
}
    
    
menu_displayidg_iCategoriesMenuPointersiItem ] )
    
    return 
PLUGIN_HANDLED


Last edited by proffs; 07-15-2014 at 07:12.
proffs is offline
 



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 21:11.


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