Am I doing something wrong?
Code:
public welcome_menu(id)
{
new menubody[512] = "\y[CFM] \rCONFUSING FUN MOD \wv2.0^n^n";
new len = strlen(menubody);
len += formatex(menubody[len], charsmax(menubody) - len, "%L", LANG_PLAYER, "m_SWAP_WEAPONS", g_Settings[SWAP_WEAPONS] ? "%L" : "%L", LANG_PLAYER, "m_ENABLED", "m_DISABLED");
show_menu(id, keys, menubody, -1, "welcome_menu");
}
Text document
PHP Code:
m_SWAP_WEAPONS = \wSwapping Weapons - %s^n
m_ENABLED = \yEnabled
m_DISABLED = \rDisabled
Output
Code:
Swapping Weapons - %L
It works with
PHP Code:
len += formatex(menubody[len], charsmax(menubody) - len, "%L", LANG_PLAYER, "m_SWAP_WEAPONS", g_Settings[SWAP_WEAPONS] ? "\yEnabled" : "\rDisabled");
__________________