AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multi-lingual System Not Working? (https://forums.alliedmods.net/showthread.php?t=22098)

Jordan 12-18-2005 16:59

Multi-lingual System Not Working?
 
K so for example I have this:

Code:
    register_dictionary("data/lang/bombstealer.txt") if (team != CS_TEAM_T)         client_print(id, print_center, "%L", LANG_SERVER, "NOT_T");

When I type /steal it gives:

ML_NOTFOUND: NOT_T

or something of that sort. Is there any way to fix this?

teame06 12-18-2005 17:02

Code:
if (team != CS_TEAM_T)         client_print(id, print_center, "%L", id, "NOT_T");

You only use LANG_SERVER when you are doing ie like logging stuff..
You only use LANG_PLAYER when you are sending to everyone using ie. client_print(0, or show_hud(0

Other than that use the player id when only sending to a single person.


Also how does your bombstealer.txt look like?

Jordan 12-18-2005 18:04

Thanks :)

http://forums.alliedmods.net/showthread.php?t=22045 :)

Edit: Hm... odd. It still displays the same message o.O

teame06 12-18-2005 19:54

I don't know what format you saved the bombstealer.txt but when I used your to test it out. It gave me invailded multi-lingual line 1 error. So I just copied everything into another text file and it would read the file perfectly except for.

Italian // << This is not vaild. it has to be like [en] for english.
NOT_T = "Lei non č terrorista. Lei non puņ rubare la bomba!"

Same thing for Russian.

So i just comment them all out for both Italian and Russian and the Multi-Lingual works fine with how I told you the ML system worked.

Also

Quote:

NOT_T = "Lei non č terrorista. Lei non puņ rubare la bomba!"
Remove the quotes... Unless you want it to be shown in the menu.

Jordan 12-18-2005 19:57

I don't know what you did, but it still doesn't work for me o.O I took out Italian and Russian, and copied straight from what you said, and I'm still getting the same message....

here: I used quotes and didn't use quotes and neither works.

Xanimos 12-18-2005 21:03

you have to use register_dictionary("bombstealer.txt") it already goes to that folder.

Jordan 12-18-2005 21:50

Nope - still doesn't work.

Xanimos 12-18-2005 23:01

you need each thing on its own line. I see it as one big line.

Jordan 12-19-2005 18:13

That's how it's written on the sheet, but when I uploaded it, it bunched it all together -

STILL doesn't work... :?

Brad 12-19-2005 19:46

Open your file in notepad. Save it. Upload it. Watch the magic.

Oh, and don't use quotes.


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

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