Need help with languages
#1

Hey guys again!
This time i want to ask for you about languages. How can i make two languages in server ? Well, if player comes in server, the server should ask about his language. Player choose english language for example. So i want to make that if player choose english language then everything in server for him says in english. I hope you understand me. As I said I am Lithuanian. Please help me guys!
Reply
#2

Variable should help you.
f.e:
pawn Код:
new Language[MAX_PLAYERS];

if(listitem == 0) Language[playerid] = 1

if(Language[playerid] == 1) SendClientMessage(playerid,rainbow,"WOALA");
Reply
#3

Thanks, man! You really helped me!
Reply
#4

ycommand is easy for servers with different languages, if you learn that, it will be more fast for your server, and easy for you.
Reply
#5

Listen, guys!
I made like this, but when i choose language for example english, it shows me two text. Lithuanian and english languages. What i do wrong ? Heres code:

Language[playerid] = 2;
SendClientMessage(playerid,0xFF0000FF,"You choose to be an Assault");
Language[playerid] = 1;
SendClientMessage(playerid,0xFF0000FF,"Jus pasirinkote buti Assaultu");
Reply
#6

pawn Код:
if(Language[playerid] == 1)
{
    SendClientMessage(playerid,0xFF0000FF,"You choose to be an Assault");
}
else if(Language[playerid] == 2)
{
    SendClientMessage(playerid,0xFF0000FF,"Jus pasirinkote buti Assaultu");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)