AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud Message lang ? (https://forums.alliedmods.net/showthread.php?t=273918)

abdobiskra 10-29-2015 05:15

Hud Message lang ?
 
Is there no way to change the language Hud Message UTF-8 !

redivcram 10-29-2015 07:14

Re: Hud Message lang ?
 
show_hudmessage(id, "%L", id, "BLAH_TEST")

Much same as client print or colorchat

CHE4TER 10-29-2015 10:38

Re: Hud Message lang ?
 
Quote:

Originally Posted by abdobiskra (Post 2357634)
Is there no way to change the language Hud Message UTF-8 !

PHP Code:

#include <amxmodx>

public plugin_init()
{
    
register_clcmd("say /hud""hud")
    
register_dictionary("hud.txt")
}

public 
hud(id)
{
    
set_hudmessage(25500, -1.00.01)
    
show_hudmessage(id"%L"id"TEST_MSG")


hud.txt (addons\amxmodx\data\lang)
Code:

[en]
TEST_MSG = Hello World!

I use Notepad++ for saving in UTF-8 without BOM

abdobiskra 10-29-2015 11:34

Re: Hud Message lang ?
 
1 Attachment(s)
Thank you for your responses
I also used the same method but it did not work with my lang ! (arabic) ..


... colorchat Supports languages?

Where the problem lies in that?

CHE4TER 10-29-2015 12:16

Re: Hud Message lang ?
 
1 Attachment(s)
Quote:

Originally Posted by abdobiskra (Post 2357732)
Thank you for your responses
I also used the same method but it did not work with my lang ! (arabic) ..


... colorchat Supports languages?

Where the problem lies in that?

As you can see works fine in my server.
Maybe you doing something wrong?

abdobiskra 10-29-2015 12:24

Re: Hud Message lang ?
 
Unfortunately I have not set the game it Half-Life 1 not CS !

Where is this different?

and can you attach your hud.txt file (arabic) i want try

CHE4TER 10-29-2015 12:28

Re: Hud Message lang ?
 
Quote:

Originally Posted by abdobiskra (Post 2357750)
Unfortunately I have not set the game it Half-Life 1 not CS !

Where is this different?

and can you attach your hud.txt file (arabic) i want try

What do you mean? Your server is Half-Life? Not CS?

abdobiskra 10-29-2015 12:39

Re: Hud Message lang ?
 
Yes !

CHE4TER 10-29-2015 12:42

Re: Hud Message lang ?
 
1 Attachment(s)
Quote:

Originally Posted by abdobiskra (Post 2357753)
Yes !

I never played/tested half-life servers. Maybe someone can look up the problem.
But I don't think if there are any difference.

Quote:

Originally Posted by abdobiskra (Post 2357750)
and can you attach your hud.txt file (arabic) i want try


abdobiskra 10-29-2015 12:55

Re: Hud Message lang ?
 
The way in which you wrote it wrong because the language will appear inverted and not properly language when i trayed to wrait correctly it did not work .. here my problem :/ !!

But this way it succeeds with function :

Code:

client_print(0, print_chat, "%L", 0, "TEST")


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

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