[Include] Ulric Multi Language
#1

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)
Reply
#2

Sounds nice, Downloading
Reply
#3

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

Anyway this release is awesome!!
Reply
#4

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"
Reply
#5

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!
Reply
#6

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

Great admin system, Good Work
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)