fixed a bug where menu handler used wrong variable for param2 bitmask in MenuVoteEnd
3 * ===============================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * ===============================================================
7 * This file is part of the SourceMod/SourcePawn SDK. This file may only be used
8 * or modified under the Terms and Conditions of its License Agreement, which is found
9 * in LICENSE.txt. The Terms and Conditions for making SourceMod extensions/plugins
10 * may change at any time. To view the latest information, see:
11 * http://www.sourcemod.net/license.php
16 #if defined _datapack_included
19 #define _datapack_included
22 * Creates a new data pack.
24 * @return A Handle to the data pack. Must be closed with CloseHandle().
26 native Handle:CreateDataPack();
29 * Packs a normal cell into a data pack.
31 * @param pack Handle to the data pack.
32 * @param cell Cell to add.
34 * @error Invalid handle.
36 native WritePackCell(Handle:pack, cell);
39 * Packs a float into a data pack.
41 * @param pack Handle to the data pack.
42 * @param val Float to add.
44 * @error Invalid handle.
46 native WritePackFloat(Handle:pack, Float:val);
49 * Packs a string into a data pack.
51 * @param pack Handle to the data pack.
52 * @param str String to add.
54 * @error Invalid handle.
56 native WritePackString(Handle:pack, String:str[]);
59 * Reads a cell from a data pack.
61 * @param pack Handle to the data pack.
63 * @error Invalid handle, or bounds error.
65 native ReadPackCell(Handle:pack);
68 * Reads a float from a data pack.
70 * @param pack Handle to the data pack.
71 * @return Float value.
72 * @error Invalid handle, or bounds error.
74 native Float:ReadPackFloat(Handle:pack);
77 * Reads a string from a data pack.
79 * @param pack Handle to the data pack.
80 * @param buffer Destination string buffer.
81 * @param maxlen Maximum length of output string buffer.
83 * @error Invalid handle, or bounds error.
85 native ReadPackString(Handle:pack, String:buffer[], maxlen);
88 * Resets the position in a data pack.
90 * @param pack Handle to the data pack.
91 * @param clear If true, clears the contained data.
93 * @error Invalid handle.
95 native ResetPack(Handle:pack, bool:clear=false);
98 * Returns the read or write position in a data pack.
100 * @param pack Handle to the data pack.
101 * @return Numerical position in the data pack.
102 * @error Invalid handle.
104 native GetPackPosition(Handle:pack);
107 * Sets the read/write position in a data pack.
109 * @param pack Handle to the data pack.
110 * @param position New position to set.
112 * @error Invalid handle, or position is beyond the pack bounds.
114 native SetPackPosition(Handle:pack, position);
117 * Returns whether or not a specified number of bytes from the data pack
118 * position to the end can be read.
120 * @param pack Handle to the data pack.
121 * @param bytes Number of bytes to simulate reading.
122 * @return True if can be read, false otherwise.
123 * @error Invalid handle.
125 native bool:IsPackReadable(Handle:pack, bytes);