Raised This Month: $ Target: $400
 0% 

Multi-lingual Support: The 'target' Parameter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-29-2005 , 18:13   Multi-lingual Support: The 'target' Parameter
Reply With Quote #1

I'm a bit confused about what happens when I use the different options for the 'target' parameter when using the multi-lingual support.

Quote:
Originally Posted by Scripting Tutorial in Documentation
Let's break this down. For each %L that appears, we need at least two parameters. The first parameter is the TARGET. This must be a player id, LANG_SERVER (meaning show in the server's native language), or LANG_PLAYER. LANG_PLAYER is a special modifier that should only be used when sending a message to all players - it means "show in every player's native language". The second parameter is the key string that identifies the language phrase to translate. Lastly, if the translated string requires any parameters itself (ours needs %d, one integer), that must be added as well.
I've been using LANG_PLAYER everytime I want to show text to 1 or more players. After rereading the documentation, I'm not sure if that's a good idea. According to what I quoted above, I believe I should be using the player's ID when I'm sending text to a single player. If I did that, would the text be displayed in that player's language?

In the following code, does using LANG_PLAYER hurt anything even though I'm sending the message to a single player?
Code:
client_print(id, print_chat, "[Restrict Names] %L", LANG_PLAYER, "REASON_RENAMED_SUM")
I'm just confused. Anyone have some light for me?
Brad is offline
 



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 14:29.


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