Moved FakeClientCommand from clients.inc to console.inc since it was also moved internally
authorScott Ehlert <ds@alliedmods.net>
Thu Jun 07 02:26:06 2007 +0000 (2007-06-07)
changeset 899af4da125603b
parent 898 f8ff0a7cd037
child 900 b38c83f9d526
Moved FakeClientCommand from clients.inc to console.inc since it was also moved internally
Fixed internal buffer sizes in PrintToChat() and PrintCenterText()
core/smn_halflife.cpp
plugins/include/clients.inc
plugins/include/console.inc
     1.1 --- a/core/smn_halflife.cpp	Thu Jun 07 02:04:05 2007 +0000
     1.2 +++ b/core/smn_halflife.cpp	Thu Jun 07 02:26:06 2007 +0000
     1.3 @@ -273,7 +273,7 @@
     1.4  		return pContext->ThrowNativeError("Client %d is not in game", client);
     1.5  	}
     1.6  
     1.7 -	char buffer[256];
     1.8 +	char buffer[192];
     1.9  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
    1.10  
    1.11  	g_HL2.TextMsg(client, HUD_PRINTTALK, buffer);
    1.12 @@ -296,7 +296,7 @@
    1.13  		return pContext->ThrowNativeError("Client %d is not in game", client);
    1.14  	}
    1.15  
    1.16 -	char buffer[256];
    1.17 +	char buffer[192];
    1.18  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
    1.19  
    1.20  	g_HL2.TextMsg(client, HUD_PRINTCENTER, buffer);
     2.1 --- a/plugins/include/clients.inc	Thu Jun 07 02:04:05 2007 +0000
     2.2 +++ b/plugins/include/clients.inc	Thu Jun 07 02:26:06 2007 +0000
     2.3 @@ -492,14 +492,3 @@
     2.4   * @error				Returns 0 if invalid userid.
     2.5   */
     2.6  native GetClientOfUserId(userid);
     2.7 -
     2.8 -/**
     2.9 - * Executes a client command on the server without being networked.
    2.10 - *
    2.11 - * @param client		Index of the client.
    2.12 - * @param fmt			Format of the client command.
    2.13 - * @param ...			Format parameters
    2.14 - * @noreturn
    2.15 - * @error				Invalid client index, or client not connected.
    2.16 - */
    2.17 -native FakeClientCommand(client, const String:fmt[], any:...);
     3.1 --- a/plugins/include/console.inc	Thu Jun 07 02:04:05 2007 +0000
     3.2 +++ b/plugins/include/console.inc	Thu Jun 07 02:26:06 2007 +0000
     3.3 @@ -122,6 +122,17 @@
     3.4  native ClientCommand(client, const String:fmt[], any:...);
     3.5  
     3.6  /**
     3.7 + * Executes a client command on the server without being networked.
     3.8 + *
     3.9 + * @param client		Index of the client.
    3.10 + * @param fmt			Format of the client command.
    3.11 + * @param ...			Format parameters
    3.12 + * @noreturn
    3.13 + * @error				Invalid client index, or client not connected.
    3.14 + */
    3.15 +native FakeClientCommand(client, const String:fmt[], any:...);
    3.16 +
    3.17 +/**
    3.18   * Sends a message to the server console.
    3.19   *
    3.20   * @param format		Formatting rules.