Multilanguage gamemode
#1

That is the best way to make multilanguage gamemode? Use files to keep each translation in certain file, or what? Need some advices
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=295580
This would be the best way to do that.

Example:
text.EN
Код:
[test]
TEST_MESSAGE = This is English TEST_MESSAGE
WHATEVER_MESSAGE = This is English WHATEVER_MESSAGE
text.FR
Код:
[test]
TEST_MESSAGE = This is French TEST_MESSAGE
WHATEVER_MESSAGE = This is French WHATEVER_MESSAGE
Then you load them like this:
pawn Код:
loadtext text[test];

public OnGameModeInit()
{
    Langs_Add("EN", "English");
    Langs_Add("FR", "French");
}
Then if you want to send a message:
pawn Код:
Text_Send(playerid, $TEST_MESSAGE);
Text_Send(playerid, $WHATEVER_MESSAGE);
Reply
#3

Looks interesting, I check this. Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)