Raised This Month: $ Target: $400
 0% 

Lang file problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GasmoN
Member
Join Date: Jul 2014
Old 02-14-2017 , 11:53   Lang file problem
Reply With Quote #1

When I select extra item with multinagluag support (lang file), text will be displayed in english, but if i select same extra item serveral times, sometimes text will be displayed in other language written in lang file, why?

Example of lang file
[en]
TEXT = English text

[es]
TEXT = Text that appears randomly from other language in lang file

here is the example of extra item when it's selected
PHP Code:
public zp_fw_items_select_post(iditemidignorecost)
{
    if(
itemid != itemid_dmg)
    return;
    
    
ColorChat(idCHATCOLOR_BLUE"$g%s$t %L"PREFIXLANG_PLAYER"R_BOUGHT"get_pcvar_float(DamageTime))
    
ImaDMG[id] = true
    set_task
(get_pcvar_float(DamageTime), "RemoveDamageItem"id)


GasmoN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-14-2017 , 12:22   Re: Lang file problem
Reply With Quote #2

Use id instead of LANG_PLAYER.
__________________

Last edited by OciXCrom; 02-14-2017 at 12:22.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GasmoN
Member
Join Date: Jul 2014
Old 02-14-2017 , 12:30   Re: Lang file problem
Reply With Quote #3

FIXED. Thank you!
GasmoN 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 20:26.


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