SA-MP Forums Archive
[Include] Ulric 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Ulric Multi Language (/showthread.php?tid=324683)



Ulric Multi Language - Xaviour212 - 10.03.2012

Introduction
pawn Код:
It is a simple multi language system by me. This include use a file to load a multi language.
Native
pawn Код:
native SetPlayerLanguage(playerid, langname[]);
//Set a player language, language[] its a refer to a language file
native GetPlayerLanguage(playerid);
//Get a player language
native SendMultiLangMsg(playerid, colour, langname[], wordcode[]);
//Send a message using multi language, code[] its a refer like a key[] in dini
native ShowWord(langname[], wordcode[]);
//Show a word from code
native LFile(langname[]);
//Get a file langname[]
native NewLine(string[])
//Im get it from dini.inc
native SendMultiLangMsgEx(playerid, colour, langname[], wordcode[], {Float,_}:...)}
//Send multi language message with a format
Download
Include
Код:
* Pastebin
Example Language
Код:
* Mediafire (Including English, German and Indonesian)
//Put to the scriptfiles download
Example Script
Код:
* Mediafire (Gamemode example)



Re: Ulric Multi Language - ilikenuts - 10.03.2012

Sounds nice, Downloading


Re: Ulric Multi Language - Ballu Miaa - 11.03.2012

Can you give us some more examples of How to use this include. Seems confusing to me mate.

Anyway this release is awesome!!


Re: Ulric Multi Language - Xaviour212 - 11.03.2012

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Can you give us some more examples of How to use this include. Seems confusing to me mate.

Anyway this release is awesome!!
Example:
Код:
- Go to scriptfiles folder
- Create a new subfolder with name "Language"
- Go to subfolder Language, create a new english.txt file
- Double click english.txt, write on english.txt "welcome=Welcome to our server" (Not use "")

- Then, go to your gamemode, write a #include <Language> (my multi language include)
- Write under OnPlayerConnect, SetPlayerLanguage(playerid, "english");
- Under SetPlayerLanguage(playerid, "english"), write SendMultiLangMsg(playerid, 0xFFFFFFFF, GetPlayerLanguage(playerid), "welcome");
- Compile
- Now try connect to your server, You will get message "Welcome to our server"



Re: Ulric Multi Language - Ballu Miaa - 11.03.2012

Quote:
Originally Posted by Xaviour212
Посмотреть сообщение
Example:
Код:
- Go to scriptfiles folder
- Create a new subfolder with name "Language"
- Go to subfolder Language, create a new english.txt file
- Double click english.txt, write on english.txt "welcome=Welcome to our server" (Not use "")

- Then, go to your gamemode, write a #include <Language> (my multi language include)
- Write under OnPlayerConnect, SetPlayerLanguage(playerid, "english");
- Under SetPlayerLanguage(playerid, "english"), write SendMultiLangMsg(playerid, 0xFFFFFFFF, GetPlayerLanguage(playerid), "welcome");
- Compile
- Now try connect to your server, You will get message "Welcome to our server"
Allright thanks for the example. Will Try to use this on the next update of my script!


Re: Ulric Multi Language - Xaviour212 - 11.03.2012

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Allright thanks for the example. Will Try to use this on the next update of my script!
Thanks


Re: Ulric Multi Language - Mouheb - 11.03.2012

Great admin system, Good Work


Re: Ulric Multi Language - Xaviour212 - 12.03.2012

Quote:
Originally Posted by Mouheb
Посмотреть сообщение
Great admin system, Good Work
Its not a admin system