Updated includes and spcomp to SourceMod 1.9
This commit is contained in:
Vendored
+13
-20
@@ -41,9 +41,8 @@
|
||||
*
|
||||
* @param format String format.
|
||||
* @param ... Format arguments.
|
||||
* @noreturn
|
||||
*/
|
||||
native LogMessage(const String:format[], any:...);
|
||||
native void LogMessage(const char[] format, any ...);
|
||||
|
||||
/**
|
||||
* Logs a message to any file. The log message will be in the normal
|
||||
@@ -52,10 +51,9 @@ native LogMessage(const String:format[], any:...);
|
||||
* @param file File to write the log message in.
|
||||
* @param format String format.
|
||||
* @param ... Format arguments.
|
||||
* @noreturn
|
||||
* @error File could not be opened/written.
|
||||
*/
|
||||
native LogToFile(const String:file[], const String:format[], any:...);
|
||||
native void LogToFile(const char[] file, const char[] format, any ...);
|
||||
|
||||
/**
|
||||
* Same as LogToFile(), except no plugin logtag is prepended.
|
||||
@@ -63,10 +61,9 @@ native LogToFile(const String:file[], const String:format[], any:...);
|
||||
* @param file File to write the log message in.
|
||||
* @param format String format.
|
||||
* @param ... Format arguments.
|
||||
* @noreturn
|
||||
* @error File could not be opened/written.
|
||||
*/
|
||||
native LogToFileEx(const String:file[], const String:format[], any:...);
|
||||
native void LogToFileEx(const char[] file, const char[] format, any ...);
|
||||
|
||||
/**
|
||||
* Logs an action from a command or event whereby interception and routing may
|
||||
@@ -77,18 +74,16 @@ native LogToFileEx(const String:file[], const String:format[], any:...);
|
||||
* @param target Client being targetted, or -1 if not applicable.
|
||||
* @param message Message format.
|
||||
* @param ... Message formatting parameters.
|
||||
* @noreturn
|
||||
*/
|
||||
native LogAction(client, target, const String:message[], any:...);
|
||||
native void LogAction(int client, int target, const char[] message, any ...);
|
||||
|
||||
/**
|
||||
* Logs a plugin error message to the SourceMod logs.
|
||||
*
|
||||
* @param format String format.
|
||||
* @param ... Format arguments.
|
||||
* @noreturn
|
||||
*/
|
||||
native LogError(const String:format[], any:...);
|
||||
native void LogError(const char[] format, any ...);
|
||||
|
||||
/**
|
||||
* Called when an action is going to be logged.
|
||||
@@ -99,16 +94,16 @@ native LogError(const String:format[], any:...);
|
||||
* @param client Client the action is from; 0 for server, -1 if not applicable.
|
||||
* @param target Client the action is targetting, or -1 if not applicable.
|
||||
* @param message Message that is being logged.
|
||||
* @return Plugin_Continue will cause Core to defaulty log the message.
|
||||
* @return Plugin_Continue will perform the default logging behavior.
|
||||
* Plugin_Handled will stop Core from logging the message.
|
||||
* Plugin_Stop is the same as Handled, but prevents any other
|
||||
* plugins from handling the message.
|
||||
*/
|
||||
forward Action:OnLogAction(Handle:source,
|
||||
Identity:ident,
|
||||
client,
|
||||
target,
|
||||
const String:message[]);
|
||||
forward Action OnLogAction(Handle source,
|
||||
Identity ident,
|
||||
int client,
|
||||
int target,
|
||||
const char[] message);
|
||||
|
||||
/**
|
||||
* Called when a game log message is received.
|
||||
@@ -129,14 +124,12 @@ typedef GameLogHook = function Action (const char[] message);
|
||||
* Adds a game log hook.
|
||||
*
|
||||
* @param hook Hook function.
|
||||
* @noreturn
|
||||
*/
|
||||
native AddGameLogHook(GameLogHook:hook);
|
||||
native void AddGameLogHook(GameLogHook hook);
|
||||
|
||||
/**
|
||||
* Removes a game log hook.
|
||||
*
|
||||
* @param hook Hook function.
|
||||
* @noreturn
|
||||
*/
|
||||
native RemoveGameLogHook(GameLogHook:hook);
|
||||
native void RemoveGameLogHook(GameLogHook hook);
|
||||
|
||||
Reference in New Issue
Block a user