AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Lang file problem (https://forums.alliedmods.net/showthread.php?t=293907)

GasmoN 02-14-2017 11:53

Lang file problem
 
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)




OciXCrom 02-14-2017 12:22

Re: Lang file problem
 
Use id instead of LANG_PLAYER.

GasmoN 02-14-2017 12:30

Re: Lang file problem
 
FIXED. Thank you!


All times are GMT -4. The time now is 20:26.

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