Fixed PrintCenterTextAll not accepting the small translation key.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401223
This commit is contained in:
Phong Dang 2007-07-30 20:26:18 +00:00
parent 9b86e7bdf6
commit 5acdc40618

View File

@ -264,13 +264,13 @@ stock PrintCenterTextAll(const String:format[], any:...)
{ {
new maxClients = GetMaxClients(); new maxClients = GetMaxClients();
decl String:buffer[192]; decl String:buffer[192];
VFormat(buffer, sizeof(buffer), format, 2);
for (new i = 1; i <= maxClients; i++) for (new i = 1; i <= maxClients; i++)
{ {
if (IsClientInGame(i)) if (IsClientInGame(i))
{ {
SetGlobalTransTarget(i);
VFormat(buffer, sizeof(buffer), format, 2);
PrintCenterText(i, "%s", buffer); PrintCenterText(i, "%s", buffer);
} }
} }