Raised This Month: $ Target: $400
 0% 

Multi-lingual System Not Working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-18-2005 , 16:59   Multi-lingual System Not Working?
Reply With Quote #1

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?
Jordan is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 12-18-2005 , 17:02  
Reply With Quote #2

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?
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-18-2005 , 18:04  
Reply With Quote #3

Thanks

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

Edit: Hm... odd. It still displays the same message o.O
Jordan is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 12-18-2005 , 19:54  
Reply With Quote #4

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.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-18-2005 , 19:57  
Reply With Quote #5

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.
Jordan is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-18-2005 , 21:03  
Reply With Quote #6

you have to use register_dictionary("bombstealer.txt") it already goes to that folder.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-18-2005 , 21:50  
Reply With Quote #7

Nope - still doesn't work.
Jordan is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-18-2005 , 23:01  
Reply With Quote #8

you need each thing on its own line. I see it as one big line.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-19-2005 , 18:13  
Reply With Quote #9

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

STILL doesn't work...
Jordan is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-19-2005 , 19:46  
Reply With Quote #10

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

Oh, and don't use quotes.
Brad 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 16:01.


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