Raised This Month: $ Target: $400
 0% 

[RUNTIME ERROR] Invalid menu id 40(42)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 11-11-2011 , 09:08   [RUNTIME ERROR] Invalid menu id 40(42)
Reply With Quote #1

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(idmenuitem

    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?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable 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 14:15.


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