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?