I have problem with multilingual system and I cannot find reason and/or solution, so I thought someone of you could help.
As title says "half English" - most of my plugins runs by using "LANG_PLAYER" for chat announcements and everything was fine, till yesterday I updated one of my plugins with some new lines (also ML part)... I added some "
client_print_color" and actually that is all i did.
At first I used "register_dictionary_colored", but then I thought, maybe that is the reason, so I removed color "codes" (!t/!g/!n) from ML file and changed back to "register_dictionary"... nothing changed.
Well, since I hate asking for help, I tried good ol` searching, I found one topic
https://forums.alliedmods.net/showthread.php?t=129952 the same problem, any solution provided :<
And, this is for ALL plugins that use ML, not only for modified one!
No, I am not getting ML_NOTFOUND error.
Some code from plugin (also some things I tried, like using formatex, and printing msg without colors)
PHP Code:
//new text[128]
new name[32]
get_user_name(id, name, 31)
//formatex(text,127,"%L",LANG_PLAYER,"BOUGHT_SPEED",name, powertime[id][1])
client_print_color(0,RED,"^3[TSHOP]^1 %L",LANG_PLAYER,"BOUGHT_SPEED",name, powertime[id][1])
//client_print(0,print_chat,"[TSHOP] %L",LANG_PLAYER,"BOUGHT_SPEED",name, powertime[id][1])
Some lines ML, i know [lv] is not official amxmodx language, but it has been working without any error since this day.
HTML Code:
[en]
BOUGHT_NOCLIP = %s bought noclip for %d seconds
BOUGHT_SILENT = %s bought silent footsteps for %d seconds
BOUGHT_BHOP = %s bought autobhop for %d seconds
BOUGHT_SPEED = %s bought speed for %d seconds
BOUGHT_GRAVITY = %s bought low gravity for %d seconds
[lv]
BOUGHT_NOCLIP = %s nopirka noclip uz %d sekundēm
BOUGHT_SILENT = %s nopirka klusus soļus uz %d sekundēm
BOUGHT_BHOP = %s nopirka autobhop uz %d sekundēm
BOUGHT_SPEED = %s nopirka ātrumu uz %d sekundēm
BOUGHT_GRAVITY = %s nopirka zemu gravitāciju uz %d sekundēm
__________________