fixed amb455
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401040
This commit is contained in:
@@ -231,12 +231,12 @@ stock PrintToChatAll(const String:format[], any:...)
|
||||
new maxClients = GetMaxClients();
|
||||
decl String:buffer[192];
|
||||
|
||||
VFormat(buffer, sizeof(buffer), format, 2);
|
||||
|
||||
for (new i = 1; i <= maxClients; i++)
|
||||
{
|
||||
if (IsClientInGame(i))
|
||||
{
|
||||
SetGlobalTransTarget(i);
|
||||
VFormat(buffer, sizeof(buffer), format, 2);
|
||||
PrintToChat(i, "%s", buffer);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,3 +28,14 @@
|
||||
* @noreturn
|
||||
*/
|
||||
native LoadTranslations(const String:file[]);
|
||||
|
||||
/**
|
||||
* Sets the global language target. This is useful for creating functions
|
||||
* that will be compatible with the %t format specifier. Note that invalid
|
||||
* indexes can be specified but the error will occur during translation,
|
||||
* not during this function call.
|
||||
*
|
||||
* @param client Client index or LANG_SERVER.
|
||||
* @noreturn
|
||||
*/
|
||||
native SetGlobalTransTarget(client);
|
||||
|
||||
Reference in New Issue
Block a user