Raised This Month: $ Target: $400
 0% 

Language System


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KillhemAll
Member
Join Date: Jun 2008
Old 07-07-2008 , 07:29   Language System
Reply With Quote #1

Heyy Community ,

I want to make my plugin multi-lingual.But how does it works?

Can someone explain it to me ?

Would be great.

Greetz

KillhemAll
KillhemAll is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-07-2008 , 07:38   Re: Language System
Reply With Quote #2

http://wiki.amxmodx.org/Advanced_Scr...28AMX_Mod_X%29 -> Multi-Lingual Support
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
KillhemAll
Member
Join Date: Jun 2008
Old 07-07-2008 , 09:22   Re: Language System
Reply With Quote #3

THX +karma
KillhemAll is offline
KillhemAll
Member
Join Date: Jun 2008
Old 07-07-2008 , 10:28   Re: Language System
Reply With Quote #4

Ok i have done it like in the "tutorial" but it won't work.It says something like AWAY_MESSAGE not found . My infos4.txt file http://open-zone.de/cs/infos4.txt.

My registration in plugin_init()

register_dictionary("infos4.txt")

Infos4.txt is in the correct dir lang/data.

My Line to use Infos4.txt

client_print(id, print_chat, "[O-Z.de] %L", id, "AFK_MESSAGE")

Can someone help me?

Greetz
KillhemAll is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-07-2008 , 11:29   Re: Language System
Reply With Quote #5

Here's an example:
PHP Code:
// LANG_SERVER - language that is set by server
// LANG_PLAYER - language that is set by player client-side
client_print(idprint_chat"%L"LANG_SERVER"AFK_MESSAGE"
__________________
hleV is offline
KillhemAll
Member
Join Date: Jun 2008
Old 07-07-2008 , 12:01   Re: Language System
Reply With Quote #6

Ok i try it
__________________

KillhemAll is offline
KillhemAll
Member
Join Date: Jun 2008
Old 07-07-2008 , 12:09   Re: Language System
Reply With Quote #7

Sorry dont work
__________________

KillhemAll is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 07-07-2008 , 12:33   Re: Language System
Reply With Quote #8

Quote:
Sorry dont work
Read again documentation.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-07-2008 , 13:21   Re: Language System
Reply With Quote #9

@hleV - no, read the documentation before reply...id is used when you print the message to a single player, else use LANG_PLAYER.
@Sn!ff3r - completely useless reply...
@KillhemAll - hmm, try to put only "%L" at message arg,without "[O-Z.de]"
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
KillhemAll
Member
Join Date: Jun 2008
Old 07-07-2008 , 13:40   Re: Language System
Reply With Quote #10

ok i try it thx for being friendly
__________________

KillhemAll 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 18:44.


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