Multi language
#1

Hello, how to make multi language
Example: English/Estonia, if i select English then i got all text in English and if choose Estonia then i got all text in Estonia.

I use PPC_Trucking gamemode, so text is in include file
Reply
#2

Hello, you have to do a lot of works to success this.
You have to create a new func :
pawn Код:
new Langage[MAX_PLAYERS];
And after that, create a dialog, if the player selects Estonian :
pawn Код:
Langage[playerid] = 1;
And if he selects english
pawn Код:
Langage[playerid] = 2;
Commands :
pawn Код:
CMD:test(playerid, params[])
{
    if(Langage[playerid] == 1)
    {
        SendClientMessage(playerid, -1, "Midagi siin (****** translate)");
    }
    else if(Langage[playerid] == 2)
    {
        SendClientMessage(playerid, -1, "Place something here");
    }
    return 1;
}
It was an example.
Reply
#3

Consider using y_lang. It will make your life a lot easier because you can easily add new translations to your gamemode.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)