Raised This Month: $ Target: $400
 0% 

Multilang enum


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-07-2010 , 12:36   Multilang enum
Reply With Quote #1

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

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-07-2010 , 13:10   Re: Multilang enum
Reply With Quote #2

What do you want to do exactly ? Can you give a concrete exemple ?
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-07-2010 , 13:56   Re: Multilang enum
Reply With Quote #3

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.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-07-2010 , 14:00   Re: Multilang enum
Reply With Quote #4

Pass the ML keys in the strings array.

See adminchat.sma
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-07-2010 , 14:02   Re: Multilang enum
Reply With Quote #5

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.
__________________
Arkshine is offline
Reply



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 08:49.


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