Whoa, bug. Hopefully fixed PrintToChatAll and PrintCenterTextAll once and for all...
Whoa, bug. Hopefully fixed PrintToChatAll and PrintCenterTextAll once and for all...
1.1 --- a/plugins/include/halflife.inc Thu Jun 07 07:29:55 2007 +0000
1.2 +++ b/plugins/include/halflife.inc Thu Jun 07 07:36:41 2007 +0000
1.3 @@ -228,12 +228,12 @@
1.4 */
1.5 stock PrintToChatAll(const String:format[], any:...)
1.6 {
1.7 - new num = GetMaxClients();
1.8 + new maxClients = GetMaxClients();
1.9 decl String:buffer[192];
1.10
1.11 VFormat(buffer, sizeof(buffer), format, 2);
1.12
1.13 - for (new i = 1; i < num; i++)
1.14 + for (new i = 1; i <= maxClients; i++)
1.15 {
1.16 if (IsClientInGame(i))
1.17 {
1.18 @@ -262,12 +262,12 @@
1.19 */
1.20 stock PrintCenterTextAll(const String:format[], any:...)
1.21 {
1.22 - new num = GetMaxClients();
1.23 + new maxClients = GetMaxClients();
1.24 decl String:buffer[192];
1.25
1.26 VFormat(buffer, sizeof(buffer), format, 2);
1.27
1.28 - for (new i = 1; i < num; i++)
1.29 + for (new i = 1; i <= maxClients; i++)
1.30 {
1.31 if (IsClientInGame(i))
1.32 {