Multi language - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multi language (
/showthread.php?tid=538747)
Multi language -
b00m112 - 23.09.2014
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
Re : Multi language -
streetpeace - 24.09.2014
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 :
And if he selects english
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.
Re: Multi language -
Sithis - 24.09.2014
Consider using y_lang. It will make your life a lot easier because you can easily add new translations to your gamemode.