how to make in our script 2 language to select
#1

hi i want to know how to put 2 languge in scirpt like when player is conected the menu come up and player select witch languge he want

Reply
#2

example :

under onplayerconnect :
Код:
ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "Please Choose Your Language", "English\nFrench", "Select", "Cancel");
then under ondialogresponse
Код:
if(dialogid == 111 && response)
	{
	  switch(listitem)
	  {
	    case 0://english
	    {
         SendClientMessage(playerid,0x33AA33AA,"Good Morning");
	    }


	    case 1://french
	    {
         SendClientMessage(playerid,0x33AA33AA,"Bonjour");
	    }
  	   }
	}
________
Couples Webcams
Reply
#3

Or if you dont want dialogs then use a menu

https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu
Reply
#4

Quote:
Originally Posted by [AC
Etch ]
example :

under onplayerconnect :
Код:
ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "Please Choose Your Language", "English\nFrench", "Select", "Cancel");
then under ondialogresponse
Код:
if(dialogid == 111 && response)
	{
	  switch(listitem)
	  {
	    case 0://english
	    {
         SendClientMessage(playerid,0x33AA33AA,"Good Morning");
	    }


	    case 1://french
	    {
         SendClientMessage(playerid,0x33AA33AA,"Bonjour");
	    }
  	  }
	}
But he will get only welcome message in selected language, how to make if he select one lenguage to all mode be on that language?
Reply
#5

that is an example of the code not the whole original code
________
The Cigar Boss
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)