02.09.2014, 15:09
https://sampforum.blast.hk/showthread.php?tid=295580
This would be the best way to do that.
Example:
text.EN
text.FR
Then you load them like this:
Then if you want to send a message:
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
Код:
[test] TEST_MESSAGE = This is French TEST_MESSAGE WHATEVER_MESSAGE = This is French WHATEVER_MESSAGE
pawn Код:
loadtext text[test];
public OnGameModeInit()
{
Langs_Add("EN", "English");
Langs_Add("FR", "French");
}
pawn Код:
Text_Send(playerid, $TEST_MESSAGE);
Text_Send(playerid, $WHATEVER_MESSAGE);