Skip to content

Releases: Open-GTO/zlang

zlang v3.6.0

13 Feb 09:32

Choose a tag to compare

  • Added new functions: Lang_TextDrawCreate, Lang_TextDrawSetStringForPlayer (open.mp only), Lang_SendTextToPlayersEx (#17).
  • Optimized Lang_SendTextToAll, Lang_SendTextToPlayers, and Lang_GameTextForAll (#16).

Thanks to @NikitaFoxze

zlang v3.5.2

11 Feb 09:25

Choose a tag to compare

  • Fixed a regression in variable processing introduced in v3.5.0.

zlang v3.5.1

10 Feb 08:34

Choose a tag to compare

  • Changed the default value of MAX_LANG_VALUE_STRING to 288.
  • Fixed default values for MAX_LANG_FORMAT_STRING, MAX_LANG_MVALUE_STRING and MAX_LANG_MFORMAT_STRING.

zlang v3.5.0

09 Feb 21:04

Choose a tag to compare

  • Improved performance of Lang_SendText on the open.mp platform by @NikitaFoxze (#12).
  • Added SVar mode as an alternative to GVar mode by @NikitaFoxze (#13).

zlang v3.4.1

19 Jun 13:20

Choose a tag to compare

zlang v3.4.0

14 Sep 15:36

Choose a tag to compare

  • Added support for dynamic variables

Example of usage:

HELLO_MSG = Hello
COLOR_RED = {FF0000}
COLOR_GREEN = {00FF00}
COLOR_WHITE = {FFFFFF}
NAME_ONE = \v(COLOR_RED)Alex\v(COLOR_WHITE)
NAME_TWO = \v(COLOR_GREEN)Peter\v(COLOR_WHITE)
MESSAGE_HELLO = \v(COLOR_WHITE)\v(HELLO_MSG) \v(NAME_ONE) and \v(NAME_TWO)
dynamic_var_test = Hello, \v(%s) <- this is dynamic variable
// initialize dynamic variables
#define ENABLE_LANG_DYNAMIC_VARS
#include <zlang>

public OnGameModeInit()
{
	// ...init zlang...

	Lang_printf("dynamic_var_test", "MESSAGE_HELLO");

	// result:
	// Hello, {FFFFFF}Hello {FF0000}Alex{FFFFFF} and {00FF00}Peter{FFFFFF} <- this is dynamic variable

	return 1;
}

zlang v3.3.3

05 Dec 06:03

Choose a tag to compare

  • #6: Add Lang_CreatePlayer3DTextLabel, Lang_UpdatePlayer3DTextLabel functions
  • Fix tests

zlang v3.3.2

01 Oct 11:32

Choose a tag to compare

  • Fix const-correctness issues
  • Add tests

zlang v3.3.1

17 Feb 07:22

Choose a tag to compare

  • Add support for packet strings in Lang_SetName and Lang_SetCode
  • Add sampctl support
  • #4: Add y_hooks support

zlang v3.3.0

25 Nov 18:34

Choose a tag to compare

  • #2: Variables supports
  • Fix separator getting on keys with spaces
  • Add functions for PlayerTextDraw

Variables supports

HELLO_MSG = Hello
COLOR_RED = {FF0000}
COLOR_GREEN = {00FF00}
COLOR_WHITE = {FFFFFF}
NAME_ONE = \v(COLOR_RED)Alex\v(COLOR_WHITE)
NAME_TWO = \v(COLOR_GREEN)Peter\v(COLOR_WHITE)
MESSAGE_HELLO = \v(COLOR_WHITE)\v(HELLO_MSG) \v(NAME_ONE) and \v(NAME_TWO)