Yikes, fixed PrintToChatAll() and PrintCenterTextAll()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40904
This commit is contained in:
Scott Ehlert 2007-06-07 02:04:05 +00:00
parent f6a1db7633
commit 95dee16788
2 changed files with 5 additions and 3 deletions

View File

@ -229,7 +229,7 @@ native PrintToChat(client, const String:format[], any:...);
stock PrintToChatAll(const String:format[], any:...) stock PrintToChatAll(const String:format[], any:...)
{ {
new num = GetMaxClients(); new num = GetMaxClients();
decl buffer[256]; decl String:buffer[192];
VFormat(buffer, sizeof(buffer), format, 2); VFormat(buffer, sizeof(buffer), format, 2);
@ -263,7 +263,7 @@ native PrintCenterText(client, const String:format[], any:...);
stock PrintCenterTextAll(const String:format[], any:...) stock PrintCenterTextAll(const String:format[], any:...)
{ {
new num = GetMaxClients(); new num = GetMaxClients();
decl buffer[256]; decl String:buffer[192];
VFormat(buffer, sizeof(buffer), format, 2); VFormat(buffer, sizeof(buffer), format, 2);

View File

@ -40,13 +40,15 @@ struct Plugin
#include <admin> #include <admin>
#include <dbi> #include <dbi>
#include <sorting> #include <sorting>
#include <halflife>
#include <clients> #include <clients>
#include <console> #include <console>
#include <events> #include <events>
#include <bitbuffer> #include <bitbuffer>
#include <usermessages> #include <usermessages>
#include <menus> #include <menus>
#include <halflife>
#define MAXPLAYERS 64 /**< Maximum number of players that can be in server */
/** /**
* Declare this as a struct in your plugin to expose its information. * Declare this as a struct in your plugin to expose its information.