11.03.2012, 07:29
Quote:
Can you give us some more examples of How to use this include. Seems confusing to me mate.
Anyway this release is awesome!! |
Код:
- 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"