AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multilang enum (https://forums.alliedmods.net/showthread.php?t=120720)

joropito 03-07-2010 12:36

Multilang enum
 
Is there a way to have an enum of strings but multilang?

Arkshine 03-07-2010 13:10

Re: Multilang enum
 
What do you want to do exactly ? Can you give a concrete exemple ?

joropito 03-07-2010 13:56

Re: Multilang enum
 
PHP Code:

enum _skills "blue""red""orange" 

Or string array
PHP Code:

new skills[][] =
{
    
"red",
    
"orange",
    
"blue"


Or string array

PHP Code:

new skills[][] =
{
    
"red",
    
"orange",
    
"blue"


I'd like to use that values in a hud message but I need to be multilang.

Maybe is not in enum/array definition where to put something to make it multilang. Maybe I should put there some tag that reference to the dictionary text but I'm not sure.

ConnorMcLeod 03-07-2010 14:00

Re: Multilang enum
 
Pass the ML keys in the strings array.

See adminchat.sma

Arkshine 03-07-2010 14:02

Re: Multilang enum
 
Quote:

Maybe I should put there some tag that reference to the dictionary text but I'm not sure.
Just use the language keys in the array.


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

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