plugins/basevotes.sp
changeset 1364 99405d7da69d
parent 1330 ab94316bb52b
child 1378 115ba755bcdf
     1.1 --- a/plugins/basevotes.sp	Tue Aug 21 16:26:15 2007 +0000
     1.2 +++ b/plugins/basevotes.sp	Wed Aug 22 00:58:47 2007 +0000
     1.3 @@ -372,12 +372,13 @@
     1.4  	 	if (g_voteType != voteType:question)
     1.5  	 	{
     1.6  			decl String:title[64];
     1.7 -			GetMenuTitle(g_hVoteMenu, title, sizeof(title));
     1.8 +			GetMenuTitle(menu, title, sizeof(title));
     1.9  			
    1.10  	 		decl String:buffer[255];
    1.11  			Format(buffer, sizeof(buffer), "%T", title, param1, g_voteInfo[VOTE_NAME]);
    1.12  
    1.13 -			SetMenuTitle(g_hVoteMenu, buffer);
    1.14 +			new Handle:panel = Handle:param2;
    1.15 +			SetPanelTitle(panel, buffer);
    1.16  		}
    1.17  	}
    1.18  	else if (action == MenuAction_DisplayItem)
    1.19 @@ -397,7 +398,7 @@
    1.20  	{
    1.21  		VoteSelect(menu, param1, param2);
    1.22  	}*/
    1.23 -	else if (action == VoteCancel_NoVotes)
    1.24 +	else if (action == MenuAction_VoteCancel && param1 == VoteCancel_NoVotes)
    1.25  	{
    1.26  		PrintToChatAll("[SM] %t", "No Votes Cast");
    1.27  	}