View Single Post
glhf3000
Member
Join Date: Aug 2010
Location: middle-universe
Old 12-19-2013 , 07:00   Re: New AMXX Menu System
Reply With Quote #434

When i create 2 menus, one after one, first menu handler returns -3 as "item" (normally 0|1)
Code:
public voteMenuHandler( id, iMenu, item )
{

    if ( g_voting == 0 )
    {

        return PLUGIN_HANDLED;
    
    }
    
    server_print( "voteban: %i", item );
    
    g_votes[ item ]++;
    g_voted++;
Menus are in 2 different plugins which have almost the same code.

-3 means that 1st menu is invalid, but i did not destroyed it yet(will be destroyed at voteend).
What can i do with all this? Just stop 1st vote and destroy 1st menu and let second end?

Last edited by glhf3000; 12-19-2013 at 07:01.
glhf3000 is offline