Whoa, bug. Hopefully fixed PrintToChatAll and PrintCenterTextAll once and for all...
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40921
This commit is contained in:
parent
63c5d05747
commit
d4bc20d32b
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user