Raised This Month: $275 Target: $400
 68% 

Solved [HELP] 2 times LANG_PLAYER with old menu


Post New Thread Reply   
 
Thread Tools Display Modes
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
Ghosted
Senior Member
Join Date: Apr 2015
Location: Georgia
Old 07-14-2018 , 03:23   Re: [HELP] 2 times LANG_PLAYER with old menu
Reply With Quote #2

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 - %L^n", LANG_PLAYER, "m_SWAP_WEAPONS", LANG_PLAYER, g_Settings[SWAP_WEAPONS] ? "m_ENABLED", "m_DISABLED");

        show_menu(id, keys, menubody, -1, "welcome_menu");
}
Code:
m_SWAP_WEAPONS = \wSwapping Weapons
m_ENABLED = \yEnabled
m_DISABLED = \rDisabled
__________________
Donate

Counter-Strike Weapon Mod V1.6 (100%) [Next Update - N/A]
Counter-Strike NPC Mod (5%)

May Accept Paid Work (Steam)

Last edited by Ghosted; 07-14-2018 at 03:24.
Ghosted is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 07-14-2018 , 05:15   Re: [HELP] 2 times LANG_PLAYER with old menu
Reply With Quote #3

Thanks!
__________________
CrAzY MaN is offline
Reply


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 19:50.


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