Info about register_dictionary
I see a bunch of people using register_dictionary, and including text files in their plugins. What does this do? I amxmod funcwiki'd it but it just said that it registers a dictionary, which isnt very informative. I understand they are used to make things multi-lingual(I think), But what do they really do?
P.S. Sorry for making another thread, I just figured if someone searched for this they would find it easier(Like another newbie that needs the answer :D) |
Re: Info about register_dictionary
A dictionary file contains a bunch of text tokens for different languages. For example, if I want to translate my previous sentence into French, I would first put this in a dictionary file:
Code:
[en]PHP Code:
PHP Code:
|
Re: Info about register_dictionary
So if I make a dictionary file like this:
Code:
[en]PHP Code:
Quote:
|
Re: Info about register_dictionary
Yes.
|
Re: Info about register_dictionary
Oops, you can scratch that ID stuff. I just looked it up to make sure I was right. I've never used ML before as I think everyone should use English, so you can call me an idiot at this.
LANG_PLAYER seems to only work in functions where an id is passed into them, such as client_print(). Otherwise, you should use LANG_SERVER. There's no id parameter after either of them. |
Re: Info about register_dictionary
Ahh I see so I use:
client_print( id, print_chat, "Hawk552: %L", LANG_PLAYER, "HAWK_TALK" ) Instead the other one?> |
Re: Info about register_dictionary
Yes.
|
Re: Info about register_dictionary
Ok, thanks for your help :D
|
Re: Info about register_dictionary
It should be client_print( id, print_chat, "Hawk552: %L", id, "HAWK_TALK" ) ; LANG_PLAYER has to be used only when 0 is passed as id.
|
| All times are GMT -4. The time now is 17:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.