Quote:
Originally Posted by simanovich
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 _mcBlock( id, iMenu, iItem )
{
new szMenuName[ 80 ], iTrash
menu_item_getinfo( iMenu, iItem, iTrash, szMenuName, 1, szMenuName, charsmax( szMenuName ), iTrash )
replace_all( szMenuName, charsmax( szMenmMainMenuHandleruName ), "\w", "\d" )
menu_item_setname( iMenu, iItem, szMenuName )
return ITEM_DISABLED
}
public _mMainMenuHandler( id, iMenu, iItem )
{
if( !UTIL_CanUseMenu( id ) || iItem == MENU_EXIT )
{
return PLUGIN_HANDLED
}
menu_display( id, g_iCategoriesMenuPointers[ iItem ] )
return PLUGIN_HANDLED
}