View Full Version : muliple ML in one print_chat
maxolahird
12-16-2016, 01:03
How can I use two Multilanguage messages in the same print_chat?
I tried many ways it shows ML_NOTFOUND or only one of the messages appear..
thanks
Would be something like this, PS: i know its wrong
client_print_color(players[i], print_chat, "%L %L",LANG_PLAYER,"MONEY_AMOUNT",LANG_PLAYER,"TAGPREFIX", Moneyyy)
-edit-
I noticed I posted in the wrong section, sorry!!
Napoleon_be
12-16-2016, 07:30
have u tried this:
client_print_color(players[i], print_chat, "%L %L", LANG_PLAYER, "MONEY_AMOUNT", "TAGPREFIX", Moneyyy)
OciXCrom
12-16-2016, 08:52
have u tried this:
client_print_color(players[i], print_chat, "%L %L", LANG_PLAYER, "MONEY_AMOUNT", "TAGPREFIX", Moneyyy)
The second %L needs to be in the lang file.
client_print_color(players[i], print_chat, "%L", LANG_PLAYER, "MONEY_AMOUNT", LANG_PLAYER, "TAGPREFIX", Moneyyy)
MONEY_AMOUNT = bla bla money %L bla bla %i
maxolahird
12-16-2016, 17:20
The second %L needs to be in the lang file.
client_print_color(players[i], print_chat, "%L", LANG_PLAYER, "MONEY_AMOUNT", LANG_PLAYER, "TAGPREFIX", Moneyyy)
MONEY_AMOUNT = bla bla money %L bla bla %i
Worked !! Thank you! :up::up::up:
Btw when I must or not use LANG_PLAYER ?
OciXCrom
12-16-2016, 18:02
In this case you don't use it. Instead you use the player's id, which in this case is players[i].
If you're sending the message to all clients at once, then you use LANG_PLAYER.
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.