Merge pull request #333 from TheMadSword/IncreasedPrintToBufferSize
Increased PrintToChat, PrintCenter & PrintHint w/ "all" version, buffer sizes from 192 to 254.
This commit is contained in:
commit
51344262c6
@ -500,7 +500,7 @@ bool CHalfLife2::TextMsg(int client, int dest, const char *msg)
|
|||||||
/* Use SayText user message instead */
|
/* Use SayText user message instead */
|
||||||
if (chat_saytext != NULL && strcmp(chat_saytext, "yes") == 0)
|
if (chat_saytext != NULL && strcmp(chat_saytext, "yes") == 0)
|
||||||
{
|
{
|
||||||
char buffer[192];
|
char buffer[253];
|
||||||
UTIL_Format(buffer, sizeof(buffer), "%s\1\n", msg);
|
UTIL_Format(buffer, sizeof(buffer), "%s\1\n", msg);
|
||||||
|
|
||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
|
@ -320,7 +320,7 @@ static cell_t PrintToChat(IPluginContext *pContext, const cell_t *params)
|
|||||||
|
|
||||||
g_SourceMod.SetGlobalTarget(client);
|
g_SourceMod.SetGlobalTarget(client);
|
||||||
|
|
||||||
char buffer[192];
|
char buffer[254];
|
||||||
|
|
||||||
{
|
{
|
||||||
DetectExceptions eh(pContext);
|
DetectExceptions eh(pContext);
|
||||||
@ -354,7 +354,7 @@ static cell_t PrintCenterText(IPluginContext *pContext, const cell_t *params)
|
|||||||
|
|
||||||
g_SourceMod.SetGlobalTarget(client);
|
g_SourceMod.SetGlobalTarget(client);
|
||||||
|
|
||||||
char buffer[192];
|
char buffer[254];
|
||||||
|
|
||||||
{
|
{
|
||||||
DetectExceptions eh(pContext);
|
DetectExceptions eh(pContext);
|
||||||
@ -388,7 +388,7 @@ static cell_t PrintHintText(IPluginContext *pContext, const cell_t *params)
|
|||||||
|
|
||||||
g_SourceMod.SetGlobalTarget(client);
|
g_SourceMod.SetGlobalTarget(client);
|
||||||
|
|
||||||
char buffer[192];
|
char buffer[254];
|
||||||
{
|
{
|
||||||
DetectExceptions eh(pContext);
|
DetectExceptions eh(pContext);
|
||||||
g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
|
g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
|
||||||
|
@ -324,7 +324,7 @@ native PrintToChat(client, const String:format[], any:...);
|
|||||||
*/
|
*/
|
||||||
stock PrintToChatAll(const String:format[], any:...)
|
stock PrintToChatAll(const String:format[], any:...)
|
||||||
{
|
{
|
||||||
decl String:buffer[192];
|
decl String:buffer[254];
|
||||||
|
|
||||||
for (new i = 1; i <= MaxClients; i++)
|
for (new i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
@ -357,7 +357,7 @@ native PrintCenterText(client, const String:format[], any:...);
|
|||||||
*/
|
*/
|
||||||
stock PrintCenterTextAll(const String:format[], any:...)
|
stock PrintCenterTextAll(const String:format[], any:...)
|
||||||
{
|
{
|
||||||
decl String:buffer[192];
|
decl String:buffer[254];
|
||||||
|
|
||||||
for (new i = 1; i <= MaxClients; i++)
|
for (new i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
@ -390,7 +390,7 @@ native PrintHintText(client, const String:format[], any:...);
|
|||||||
*/
|
*/
|
||||||
stock PrintHintTextToAll(const String:format[], any:...)
|
stock PrintHintTextToAll(const String:format[], any:...)
|
||||||
{
|
{
|
||||||
decl String:buffer[192];
|
decl String:buffer[254];
|
||||||
|
|
||||||
for (new i = 1; i <= MaxClients; i++)
|
for (new i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user