From d4bc20d32b7cca58cede6c77694c56009fe847c8 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 7 Jun 2007 07:36:41 +0000 Subject: [PATCH] Whoa, bug. Hopefully fixed PrintToChatAll and PrintCenterTextAll once and for all... --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40921 --- plugins/include/halflife.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/include/halflife.inc b/plugins/include/halflife.inc index 58fdef3e..71d3c8b9 100644 --- a/plugins/include/halflife.inc +++ b/plugins/include/halflife.inc @@ -228,12 +228,12 @@ native PrintToChat(client, const String:format[], any:...); */ stock PrintToChatAll(const String:format[], any:...) { - new num = GetMaxClients(); + new maxClients = GetMaxClients(); decl String:buffer[192]; VFormat(buffer, sizeof(buffer), format, 2); - for (new i = 1; i < num; i++) + for (new i = 1; i <= maxClients; i++) { if (IsClientInGame(i)) { @@ -262,12 +262,12 @@ native PrintCenterText(client, const String:format[], any:...); */ stock PrintCenterTextAll(const String:format[], any:...) { - new num = GetMaxClients(); + new maxClients = GetMaxClients(); decl String:buffer[192]; VFormat(buffer, sizeof(buffer), format, 2); - for (new i = 1; i < num; i++) + for (new i = 1; i <= maxClients; i++) { if (IsClientInGame(i)) {