AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Language files (https://forums.alliedmods.net/showthread.php?t=27085)

MaximusBrood 04-14-2006 15:15

Language files
 
If you are making a plugin which uses a dictionary, and this is your code to display a text:

Code:
client_print(id,  print_chat, "[AMXX] %L", id, "SOME_TEXT", authid)

Which do you have to type the id twice?

client_print(id, print_chat, "[AMXX] %L", id, "SOME_TEXT", authid)

BAILOPAN 04-14-2006 15:19

because you do. %L requires a language target.

Xanimos 04-14-2006 15:19

The second id is when you are sending to one player and that tells the language to set to the clients language.

PM 04-14-2006 15:25

Or you could use LANG_PLAYER instead of the second id - this makes AMX Mod X auto-choose the language for YOU for YOU for YOU for YOU !!!! :D

MaximusBrood 04-14-2006 15:27

Ahhh...

But you forgot to tell that you need to specify it because every player has a different language.

Ty

PM 04-14-2006 15:35

Also, if you are showing something to all players, use client_print with 0 and then LANG_PLAYER.

Of course this won't help you if you are printing to only a subset of the players - you'll have to iterate yourself then.

MaximusBrood 04-14-2006 16:31

Allright, thanks PM


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

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