AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   error menu (https://forums.alliedmods.net/showthread.php?t=162549)

andre neves 07-20-2011 09:38

error menu
 
what causes this?


L 07/20/2011 - 10:29:40: Invalid menu id 48(3)
L 07/20/2011 - 10:29:40: [AMXX] Run time error 10 (plugin "player.amxx") (native "menu_additem") - debug not enabled!
L 07/20/2011 - 10:29:40: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

menu of players that have created

sometimes it works normally

more if it works change map

drekes 07-20-2011 12:15

Re: error menu
 
Without the debugged error & the code we can't do much to help you.
If you're using a global menu make sure you don't destroy it.

andre neves 07-21-2011 09:07

Re: error menu
 
PHP Code:

new menu_duel menu_create(iTitle_menu"DuelMenu_comandos")
    
    new 
player_name[30], player_id[20]
    for(
i=1;i<=iMaxPlayers;i++)
    {
        if(
is_user_connected(i))
        {                        
            if(
cs_get_user_team(i)==CS_TEAM_SPECTATOR)
            {
                
get_user_name(iplayer_namecharsmax(name))
                
num_to_str(iplayer_idcharsmax(player_id))
                
                
menu_additem(menu_duelplayer_nameplayer_id0)
            }
        }
    }
    
    
menu_setprop(menu_duelMPROP_EXITMEXIT_ALL)
    
menu_setprop(menu_duelMPROP_BACKNAME"\dBack")
    
menu_setprop(menu_duelMPROP_EXITNAME"\dExit")
    
menu_setprop(menu_duelMPROP_NEXTNAME"\dNext")
    
    
menu_display(idmenu_duel)
    return 
PLUGIN_HANDLED


are 3 menus in plugin

this happens the error

drekes 07-21-2011 10:07

Re: error menu
 
Post the full code & the full error.

Add "debug" without quotes after the plugin in plugins.ini

Example:
Code:

plugin_name.amxx debug


All times are GMT -4. The time now is 00:46.

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