Hey guys, today my server crashed and when i checked in the log I saw in the error logs this log:
Code:
L 11/11/2011 - 15:56:05: Invalid menu id 45(46)
L 11/11/2011 - 15:56:05: [AMXX] Displaying debug trace (plugin "adminslots.amxx")
L 11/11/2011 - 15:56:05: [AMXX] Run time error 10: native error (native "menu_destroy")
L 11/11/2011 - 15:56:05: [AMXX] [0] pimpdr.sma::shop_menu (line 2100)
And this is the code:
PHP Code:
public shop_menu(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(ShopMenu) // line 2100
return PLUGIN_HANDLED;
}
// .....
}
What may cause it...? is there anything I could add to the if() maybe that'll prevent it? And is this type of error causing server crash?
__________________