From 5187ea19036cead2218b933798c28a06fc44145f Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 16 Mar 2007 20:39:32 +0000 Subject: [PATCH] Changed some tags to "any" where appropriate (did I miss anything?) Plus some other strange things... --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40640 --- plugins/include/clients.inc | 4 ++-- plugins/include/console.inc | 10 +++++----- plugins/include/files.inc | 4 ++-- plugins/include/functions.inc | 6 +++--- plugins/include/sorting.inc | 2 +- plugins/include/sourcemod.inc | 8 ++++---- plugins/include/string.inc | 6 +++--- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/plugins/include/clients.inc b/plugins/include/clients.inc index c01150dd..771d4a91 100644 --- a/plugins/include/clients.inc +++ b/plugins/include/clients.inc @@ -210,7 +210,7 @@ native AdminId:GetUserAdmin(client); * @noreturn * @error Invalid client index, or client not connected. */ -native AddUserFlags(client, {AdminFlag}:...); +native AddUserFlags(client, AdminFlag:...); /** * Removes flags from a client. If the client is not an admin, @@ -221,7 +221,7 @@ native AddUserFlags(client, {AdminFlag}:...); * @noreturn * @error Invalid client index, or client not connected. */ -native RemoveUserFlags(client, {AdminFlag}:...); +native RemoveUserFlags(client, AdminFlag:...); /** * Sets access flags on a client using bits instead of flags. If the diff --git a/plugins/include/console.inc b/plugins/include/console.inc index dcebe2e7..d5eb3d79 100644 --- a/plugins/include/console.inc +++ b/plugins/include/console.inc @@ -63,7 +63,7 @@ * @param ... Variable number of format parameters. * @noreturn */ -native ServerCommand(const String:format[], {Handle,Float,String,_}:...); +native ServerCommand(const String:format[], any:...); /** * Inserts a server command at the beginning of the server command buffer. @@ -72,7 +72,7 @@ native ServerCommand(const String:format[], {Handle,Float,String,_}:...); * @param ... Variable number of format parameters. * @noreturn */ -native InsertServerCommand(const String:format[], {Handle,Float,String,_}:...); +native InsertServerCommand(const String:format[], any:...); /** * Executes every command in the server's command buffer, rather than once per frame. @@ -91,7 +91,7 @@ native ServerExecute(); * @noreturn * @error Invalid client index, or client not connected. */ -native ClientCommand(client, const String:fmt[], {String,Float,Handle,Function,_}:...); +native ClientCommand(client, const String:fmt[], any:...); /** * Sends a message to the server console. @@ -100,7 +100,7 @@ native ClientCommand(client, const String:fmt[], {String,Float,Handle,Function,_ * @param ... Variable number of format parameters. * @noreturn */ -native PrintToServer(const String:format[], {Handle,Float,String,Function,_}:...); +native PrintToServer(const String:format[], any:...); /** * Sends a message to a client's console. @@ -111,7 +111,7 @@ native PrintToServer(const String:format[], {Handle,Float,String,Function,_}:... * @noreturn * @error If the client is not connected an error will be thrown. */ -native PrintToConsole(client, const String:format[], {Handle,Float,String,Function,_}:...); +native PrintToConsole(client, const String:format[], any:...); /** * Called when a server-only command is invoked. diff --git a/plugins/include/files.inc b/plugins/include/files.inc index 9fdb5406..87574dbc 100644 --- a/plugins/include/files.inc +++ b/plugins/include/files.inc @@ -54,7 +54,7 @@ enum PathType * @param ... Format arguments. * @return Number of bytes written to buffer (not including null terminator). */ -native BuildPath(PathType:type, String:buffer[], maxlength, const String:fmt[], {Handle,Float,String,Function,_}:...); +native BuildPath(PathType:type, String:buffer[], maxlength, const String:fmt[], any:...); /** * @brief Opens a directory/folder for contents enumeration. @@ -186,4 +186,4 @@ native bool:RemoveDir(const String:path[]); * @param ... Variable number of format parameters. * @return True on success, false otherwise. */ -native bool:WriteFileLine(Handle:hndl, const String:format[], {Handle,Float,String,Function,_}:...); +native bool:WriteFileLine(Handle:hndl, const String:format[], any:...); diff --git a/plugins/include/functions.inc b/plugins/include/functions.inc index bc0bf255..e6dc9359 100644 --- a/plugins/include/functions.inc +++ b/plugins/include/functions.inc @@ -109,7 +109,7 @@ native Function:GetFunctionByName(Handle:plugin, const String:name[]); * @return Handle to new global forward. * @error More than 32 paramater types passed. */ -native Handle:CreateGlobalForward(const String:name[], ExecType:type, {ParamType}:...); +native Handle:CreateGlobalForward(const String:name[], ExecType:type, ParamType:...); /** * Creates a private forward. @@ -121,7 +121,7 @@ native Handle:CreateGlobalForward(const String:name[], ExecType:type, {ParamType * @return Handle to new private forward. * @error More than 32 paramater types passed. */ -native Handle:CreateForward(ExecType:type, {ParamType}:...); +native Handle:CreateForward(ExecType:type, ParamType:...); /** * Returns the number of functions in a global or private forward's call list. @@ -348,7 +348,7 @@ native CreateNative(const String:name[], NativeCall:func); * @param fmt Error message format. * @param ... Format arguments. */ -native ThrowNativeError(error, const String:fmt[], {Handle,Float,String,Function,_}:...); +native ThrowNativeError(error, const String:fmt[], any:...); /** * Retrieves the string length from a native parameter string. This is useful diff --git a/plugins/include/sorting.inc b/plugins/include/sorting.inc index eb03b5bb..1a341759 100644 --- a/plugins/include/sorting.inc +++ b/plugins/include/sorting.inc @@ -110,4 +110,4 @@ funcenum SortFunc2D * @param hndl Optional Handle to pass through the comparison calls. * @noreturn */ -native SortCustom2D(array[][], array_size, SortFunc2D:sortfunc, Handle:hndl=INVALID_HANDLE); \ No newline at end of file +native SortCustom2D(array[][], array_size, SortFunc2D:sortfunc, Handle:hndl=INVALID_HANDLE); diff --git a/plugins/include/sourcemod.inc b/plugins/include/sourcemod.inc index 782512a8..3c349416 100644 --- a/plugins/include/sourcemod.inc +++ b/plugins/include/sourcemod.inc @@ -189,7 +189,7 @@ native bool:GetPluginInfo(Handle:plugin, PluginInfo:info, String:buffer[], maxle * @noreturn * @error Always! */ -native ThrowError(const String:fmt[], {Handle,Float,String,Function,_}:...); +native ThrowError(const String:fmt[], any:...); /** * Logs a generic message to the HL2 logs. @@ -198,7 +198,7 @@ native ThrowError(const String:fmt[], {Handle,Float,String,Function,_}:...); * @param ... Format arguments. * @noreturn */ -native LogToGame(const String:format[], {Handle,Float,String,Function,_}:...); +native LogToGame(const String:format[], any:...); /** * Logs a plugin message to the SourceMod logs. @@ -207,7 +207,7 @@ native LogToGame(const String:format[], {Handle,Float,String,Function,_}:...); * @param ... Format arguments. * @noreturn */ -native LogMessage(const String:format[], {Handle,Float,String,Function,_}:...); +native LogMessage(const String:format[], any:...); /** * Logs a plugin error message to the SourceMod logs. @@ -216,7 +216,7 @@ native LogMessage(const String:format[], {Handle,Float,String,Function,_}:...); * @param ... Format arguments. * @noreturn */ -native LogError(const String:format[], {Handle,Float,String,Function,_}:...); +native LogError(const String:format[], any:...); /** * Gets the system time as a unix timestamp. diff --git a/plugins/include/string.inc b/plugins/include/string.inc index fbd3b499..4eef8021 100644 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -93,7 +93,7 @@ native StrCopy(String:dest[], destLen, const String:source[]); * @param ... Variable number of format parameters. * @return Number of cells written. */ -native Format(String:buffer[], maxlength, const String:format[], {Handle,Float,String,Function,_}:...); +native Format(String:buffer[], maxlength, const String:format[], any:...); /** * Formats a string according to the SourceMod format rules (see documentation). @@ -106,7 +106,7 @@ native Format(String:buffer[], maxlength, const String:format[], {Handle,Float,S * @param ... Variable number of format parameters. * @return Number of cells written. */ -native FormatEx(String:buffer[], maxlength, const String:format[], {Handle,Float,String,Function,_}:...); +native FormatEx(String:buffer[], maxlength, const String:format[], any:...); /** * Formats a string according to the SourceMod format rules (see documentation). @@ -172,4 +172,4 @@ native FloatToString(Float:num, String:str[], maxlength); * @param argLen Maximum length of argument buffer. * @return Index to next piece of string, or -1 if none. */ -native StrBreak(const String:source[], String:arg[], argLen); \ No newline at end of file +native StrBreak(const String:source[], String:arg[], argLen);