Raised This Month: $ Target: $400
 0% 

Language help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-10-2013 , 07:13   Re: Language help
Reply With Quote #1

Code:
PHP Code:
// ... 

// In plugin_init ..
register_dictionary("mylangfile.txt");

// ...

// ... in the menu function ..
static lang[128];

formatex(lang,charsmax(lang),"\w%L:",LANG_PLAYER,"MY_LANG_KEY1");
new 
menu menu_create(lang"Menu_handle");

formatex(lang,charsmax(lang),"\w%L",LANG_PLAYER,"MY_LANG_KEY2");
menu_additem(menulang);

formatex(lang,charsmax(lang),"\w%L",LANG_PLAYER,"MY_LANG_KEY3");
menu_additem(menu ,lang); 
Language file (at $moddir/addons/amxmodx/data/lang/mylangfile.txt):
Spoiler
__________________
simanovich is offline
Reply



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 23:21.


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