I thought that ML coding was supposed to be this way:
Code:
formatex(str, charsmax(str), "%L", id, "LANG_KEY", 1);
Code:
LANG_KEY = \wblah blah +%d
Am I incorrect?
Statement from AMXx documentation i believe:
1. "%L" tells the string formatter to start a language translation. "%L" must always occur by itself like it is here.
Will it display the same result in a console window instead of an ingame menu?
I can't reproduce the problem.
Here's my code and result:
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("Test Plugin 9", "1.0", "Black Rose");
register_dictionary("test9.txt")
}
public client_connect(id) {
set_task(3.0, "testfunc", id);
}
public testfunc(id) {
new b[1024];
new m = menu_create("Testmenu", "handler", 0);
formatex(b, charsmax(b), "\w%L +1", id, "color_costomadd1");
menu_additem(m, b, "30");
menu_display(id, m);
}
public handler() {
}
Code:
[en]
color_costomadd1 = Red
What are you doing differently?