plugins/basefunvotes.sp
changeset 1364 99405d7da69d
parent 1330 ab94316bb52b
child 1365 cff0aaa4d571
     1.1 --- a/plugins/basefunvotes.sp	Tue Aug 21 16:26:15 2007 +0000
     1.2 +++ b/plugins/basefunvotes.sp	Wed Aug 22 00:58:47 2007 +0000
     1.3 @@ -388,12 +388,13 @@
     1.4  	else if (action == MenuAction_Display)
     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  	else if (action == MenuAction_DisplayItem)
    1.18  	{
    1.19 @@ -412,7 +413,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 && param2 == VoteCancel_NoVotes)
    1.25  	{
    1.26  		PrintToChatAll("[SM] %t", "No Votes Cast");
    1.27  	}