30.07.2011, 07:38
Hi
I don't relase any my scripts/include there, but it can help many people.
It's simple include allows you to send a message in multiple languages
DOWNLOAD:
V1 (16.07.2011)
V2 (19.07.2011)
V3 (29.07.2011) -> http://pastebin.com/2L0bj87y
How To Install ?
1) On the top add:
2) In OnDialogResponse add:
How To Use ?
First, choose your language, use this function in command/OnPlayerConnect:
We change dots (...) to ID of language (defined in include) and message in this language, for example:
Function LanguageDialogForPlayer is an exception, example of using:
Of course, the number of languages used is not limited.
Questions ?
Ask in topic
Sorry for my bad english
I don't relase any my scripts/include there, but it can help many people.
It's simple include allows you to send a message in multiple languages
DOWNLOAD:
V1 (16.07.2011)
V2 (19.07.2011)
V3 (29.07.2011) -> http://pastebin.com/2L0bj87y
How To Install ?
1) On the top add:
Код:
#include <ML>
Код:
LANGUAGE_ODR(playerid, dialogid, response, listitem);
First, choose your language, use this function in command/OnPlayerConnect:
Код:
ChooseLanguage(playerid);
Код:
native LanguageMessage(playerid, color, ...); native LanguageMessageToAll(color, ...); native LanguageTextDrawMessage(playerid, Text:ID, ...); native LanguageGameTextForPlayer(playerid, styleid, time, ...); native LanguageGameTextForAll(styleid, time, ...); native LanguageDialogForPlayer(playerid, dialogid, style, ...);
Код:
LanguageMessage(playerid, -1, LANGUAGE_POLISH, "Po polsku", LANGUAGE_ENGLISH, "English message");
Код:
LanguageDialogForPlayer(playerid, 0, DIALOG_STYLE_MSGBOX, LANGUAGE_POLISH, "naglowek", "info", "OK", "Anuluj", LANGUAGE_ENGLISH, "caption", "info", "Accept", "Ignore");
Questions ?
Ask in topic
Sorry for my bad english