It looks to me like a player is already viewing the menu and you try to show them the menu again. I was able to reproduce it to confirm.
To fix:
Add global variable:
PHP Code:
new bool:g_bIsViewingMenu[ MAX_PLAYERS + 1 ];
In StartVote, replace 'menu_display(tempid, gGVoteMenu)' with:
PHP Code:
if ( !g_bIsViewingMenu[ tempid ] )
{
menu_display(tempid, gGVoteMenu)
g_bIsViewingMenu[ tempid ] = true;
}
Add:
PHP Code:
public client_disconnect( id )
{
g_bIsViewingMenu[ id ] = false;
}
Add to menu handler function:
Code:
public votemap(id, menu, item)
{
g_bIsViewingMenu[ id ] = false;
__________________