Raised This Month: $51 Target: $400
 12% 

Menu Multilingual


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-01-2007 , 07:12   Menu Multilingual
Reply With Quote #1

hi guys,

i have a problem to make a menu multilingual.

i format the menu like this:
Code:
format(menu[pos],511,"%L",LANG_PLAYER,"MENU_BLABLA")
and show the menu to all players, tryed this:
Code:
show_menu(0,mkeys,menu,19,"VoteMenu")
and this:
Code:
 new players[32],playersnum
 get_players(players,playersnum,"ch")
 for (new i=0;i < playersnum;i++) {
  show_menu(players[i],mkeys,menu,19,"VoteMenu")
 }
but both trys dont work, will always be shown in english.

How to show a menu to all players with there language??
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-01-2007 , 07:50   Re: Menu Multilingual
Reply With Quote #2

With the second way, replace 'LANG_PLAYER' with 'id'.
ConnorMcLeod is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-01-2007 , 08:04   Re: Menu Multilingual
Reply With Quote #3

you are the man!! thx
working perfect now.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2007 , 09:25   Re: Menu Multilingual
Reply With Quote #4

@ Shorty:

LANG_PLAYER is used for all players.

Otherwise you have to use the player id.
__________________
Arkshine is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-01-2007 , 09:55   Re: Menu Multilingual
Reply With Quote #5

only in menus or all (hud, client_print, etc.)
with huds or client_print, LANG_PLAYER seems to work

... little confused ...
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2007 , 10:42   Re: Menu Multilingual
Reply With Quote #6

All.

You use LANG_PLAYER When you do print to all client.

If you want to send a message using the server language. You would replace id or LANG_PLAYER with LANG_SERVER.

LANG_PLAYER was design to show the message in the client language vs just one language.

( words by team06 )
__________________
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 01:40.


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