Raised This Month: $ Target: $400
 0% 

Solved [HELP] 2 times LANG_PLAYER with old menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 07-14-2018 , 03:14   [HELP] 2 times LANG_PLAYER with old menu
Reply With Quote #1

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"); 
__________________

Last edited by CrAzY MaN; 07-14-2018 at 05:17.
CrAzY MaN is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode