fixups to a few include files
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40722
This commit is contained in:
parent
462fe04f95
commit
d432dc0cbd
@ -229,11 +229,11 @@ native Float:BfReadFloat(Handle:bf);
|
|||||||
* @param bf bf_read handle to read from.
|
* @param bf bf_read handle to read from.
|
||||||
* @param buffer Destination string buffer.
|
* @param buffer Destination string buffer.
|
||||||
* @param maxlength Maximum length of output string buffer.
|
* @param maxlength Maximum length of output string buffer.
|
||||||
* @param Line If true the buffer will be copied until it reaches a '\n' or a null terminator.
|
* @param line If true the buffer will be copied until it reaches a '\n' or a null terminator.
|
||||||
* @noreturn
|
* @noreturn
|
||||||
* @error Invalid or incorrect Handle, destination string buffer was too short.
|
* @error Invalid or incorrect Handle, destination string buffer was too short.
|
||||||
*/
|
*/
|
||||||
native BfReadString(Handle:bf, String:buffer[], maxlength, bool:Line=false);
|
native BfReadString(Handle:bf, String:buffer[], maxlength, bool:line=false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads an entity from a readable bitbuffer (bf_read).
|
* Reads an entity from a readable bitbuffer (bf_read).
|
||||||
|
@ -46,7 +46,7 @@ funcenum Timer
|
|||||||
* @return Plugin_Stop to stop a repeating timer, any other value for
|
* @return Plugin_Stop to stop a repeating timer, any other value for
|
||||||
* default behavior.
|
* default behavior.
|
||||||
*/
|
*/
|
||||||
Action:public(Handle:timer, value),
|
Action:public(Handle:timer, any:value),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the timer interval has elapsed.
|
* Called when the timer interval has elapsed.
|
||||||
@ -67,7 +67,7 @@ funcenum Timer
|
|||||||
* @param flags Flags to set (such as repeatability or auto-Handle closing).
|
* @param flags Flags to set (such as repeatability or auto-Handle closing).
|
||||||
* @return Handle to the timer object. You do not need to call CloseHandle().
|
* @return Handle to the timer object. You do not need to call CloseHandle().
|
||||||
*/
|
*/
|
||||||
native Handle:CreateTimer(Float:interval, Timer:func, {Handle,_}:value=INVALID_HANDLE, flags=0);
|
native Handle:CreateTimer(Float:interval, Timer:func, any:value=INVALID_HANDLE, flags=0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kills a timer. Use this instead of CloseHandle() if you need more options.
|
* Kills a timer. Use this instead of CloseHandle() if you need more options.
|
||||||
@ -99,7 +99,7 @@ native TriggerTimer(Handle:timer, bool:reset=false);
|
|||||||
* @param flags Timer flags.
|
* @param flags Timer flags.
|
||||||
* @return Handle to the timer object. You do not need to call CloseHandle().
|
* @return Handle to the timer object. You do not need to call CloseHandle().
|
||||||
*/
|
*/
|
||||||
stock Handle:CreateDataTimer(Float:interval, Timer:func, &Handle:data, flags)
|
stock Handle:CreateDataTimer(Float:interval, Timer:func, &Handle:data, flags=0)
|
||||||
{
|
{
|
||||||
data = CreateDataPack();
|
data = CreateDataPack();
|
||||||
flags |= TIMER_HNDL_CLOSE;
|
flags |= TIMER_HNDL_CLOSE;
|
||||||
|
@ -26,10 +26,13 @@ enum UserMsg
|
|||||||
INVALID_MESSAGE_ID = -1,
|
INVALID_MESSAGE_ID = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define USERMSG_PASSTHRU (1<<0) /**< Message will pass through other SourceMM plugins */
|
#define USERMSG_PASSTHRU (1<<0) /**< (DEPRECATED, NO EFFECT) */
|
||||||
#define USERMSG_PASSTHRU_ALL (1<<1) /**< Message will pass through other SourceMM plugins AND SourceMod */
|
#define USERMSG_PASSTHRU_ALL (1<<1) /**< (DEPRECATED, NO EFFECT) */
|
||||||
#define USERMSG_RELIABLE (1<<2) /**< Message will be set to reliable */
|
#define USERMSG_RELIABLE (1<<2) /**< Message will be set on the reliable stream */
|
||||||
#define USERMSG_INITMSG (1<<3) /**< Message will be considered to be an initmsg */
|
#define USERMSG_INITMSG (1<<3) /**< Message will be considered to be an initmsg */
|
||||||
|
#define USERMSG_BLOCK_MM (1<<4) /**< Message will be blocked from going through MM:S hooks */
|
||||||
|
#define USERMSG_BLOCK_SM (1<<5) /**< Message will be blocked from going through SourceMod hooks */
|
||||||
|
#define USERMSG_BLOCK_ALL (1<<6) /**< Message will be blocked from going through any hooks */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the ID of a given message, or -1 on failure.
|
* Returns the ID of a given message, or -1 on failure.
|
||||||
|
Loading…
Reference in New Issue
Block a user