Multilanguage gamemode
#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


Messages In This Thread
Multilanguage gamemode - by terrance - 02.09.2014, 15:02
Re: Multilanguage gamemode - by Stinged - 02.09.2014, 15:09
Re: Multilanguage gamemode - by terrance - 02.09.2014, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)