AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weird Run-Time-Error with Menu (https://forums.alliedmods.net/showthread.php?t=225496)

mottzi 09-05-2013 13:04

Weird Run-Time-Error with Menu
 
Hello guys,

I am getting this strange run time error, which I cant get fixxed. I have never seen it before and my research on the forums didnt help at all.

This is it:

Quote:

L 09/05/2013 - 16:40:14: Plugin called menu_display when item=MENU_EXIT
L 09/05/2013 - 16:40:14: [AMXX] Run time error 10 (plugin "lastrequest.amxx") (native "menu_display")
Maybe someone can tell me, what this error is and when it occours?

dark_style 09-05-2013 14:22

Re: Weird Run-Time-Error with Menu
 
PHP Code:

public menu_handleridmenuitem )
{
    if( 
item == MENU_EXIT )
    {
        
menu_displayidmenu // <-
        
return PLUGIN_HANDLED;
    }
    
//


->

PHP Code:

public menu_handleridmenuitem )
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroymenu ); // <-
        
return PLUGIN_HANDLED;
    }
    
//




All times are GMT -4. The time now is 19:14.

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