AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   adding ml to menu (https://forums.alliedmods.net/showthread.php?t=216844)

GhostMan 05-26-2013 09:58

adding ml to menu
 
PHP Code:

<...>

formatex(Itemcharsmax(Item), "%L"LANG_PLAYER"SPEED"get_pcvar_num(precioCT6))
menu_additem(MenuItem"6")
   
formatex(Itemcharsmax(Item), "%L"LANG_PLAYER"DRUGS"get_pcvar_num(precioCT7))
menu_additem(MenuItem"7")

menu_setprop(MenuMPROP_NEXTNAME"More")
menu_setprop(MenuMPROP_BACKNAME"Back")
menu_setprop(MenuMPROP_EXITNAME"Exit")
menu_setprop(MenuMPROP_EXITMEXIT_ALL)

<...> 

How should look this part of menu with Multi-lang added?
PHP Code:

menu_setprop(MenuMPROP_NEXTNAME"More")
menu_setprop(MenuMPROP_BACKNAME"Back")
menu_setprop(MenuMPROP_EXITNAME"Exit"


ConnorMcLeod 05-26-2013 10:01

Re: adding ml to menu
 
Do the same as you did with menu items.

hleV 05-26-2013 10:04

Re: adding ml to menu
 
PHP Code:

formatex(Itemcharsmax(Item), "%L"LANG_PLAYER"NEXT");
menu_setprop(MenuMPROP_NEXTNAMEItem);
// Etc. 

However you're using LANG_PLAYER incorrectly. It's only used in natives which send text to all the players in the server. In this case, you should replace LANG_PLAYER with player's ID.


All times are GMT -4. The time now is 16:13.

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