AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ho to set user lang (https://forums.alliedmods.net/showthread.php?t=154332)

reinert 04-06-2011 11:26

Ho to set user lang
 
How to correctly and efficiently set user lang to en and other languages ?

ConnorMcLeod 04-06-2011 12:12

Re: Ho to set user lang
 
Look at this plugin : http://forums.alliedmods.net/showthread.php?p=874679

reinert 04-07-2011 16:03

Re: Ho to set user lang
 
Whats wrong with these:
PHP Code:

client_printc0"%L"id"MSG_CONNECT_1"szNameszCityszCountry); 

Sometimes it shows the text in EN, sometimes in RU or other languages.

Arkshine 04-07-2011 16:05

Re: Ho to set user lang
 
LANG_PLAYER should be used instead if "id".

reinert 04-07-2011 16:13

Re: Ho to set user lang
 
Where can I read more about LANG's, because I don't know where to use LANG_PLAYER And the id of player.

For example the last message, that message will be sent, when player connects, so I need to get LANG_PLAYER, but if I'm showing a menu for 1 exact player who just pops up menu with say command, /menu... What should I use there ? id or LANG_PLAYER ? And if I just wan't to display LANG hudmessage...

fysiks 04-07-2011 18:47

Re: Ho to set user lang
 
http://wiki.amxmodx.org/Advanced_Scr...ingual_Support

ConnorMcLeod 04-08-2011 00:32

Re: Ho to set user lang
 
Also, i'm not sure client_printc supports LANG_PLAYER, if you want to practise with ML, start with real natives such as client_print or show_hudmessage.
( colorchat native in my sig supports LANG_PLAYER fine though :) ).
Then when you know what you do you can use stocks and dynamic natives, then if ML doesn't work you'll know that the problem is not you but the stock/dyn native.


All times are GMT -4. The time now is 19:49.

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