1.1 --- a/plugins/include/menus.inc Sat Jun 16 21:42:05 2007 +0000
1.2 +++ b/plugins/include/menus.inc Sat Jun 16 21:56:12 2007 +0000
1.3 @@ -501,3 +501,17 @@
1.4 * @error Invalid Handle.
1.5 */
1.6 native bool:SetPanelCurrentKey(Handle:panel, key);
1.7 +
1.8 +/**
1.9 + * Retrieves voting information from MenuAction_VoteEnd.
1.10 + *
1.11 + * @param param2 Second parameter of MenuAction_VoteEnd.
1.12 + * @param winningVotes Number of votes received by the winning option.
1.13 + * @param totalVotes Number of total votes received.
1.14 + * @noreturn
1.15 + */
1.16 +stock GetMenuVoteInfo(param2, &winningVotes, &totalVotes)
1.17 +{
1.18 + winningVotes = param2 & 0xFFFF;
1.19 + totalVotes = param2 >> 16;
1.20 +}