How do I use LANGAUGE defined messages in string array?
Here's the sample script:
Code: Select all
script "cornMessage" (void)
{
int messCornNr;
messCornNr = random(1,5);
str messCorn[6] = { "",
"$SCN_CORN01", <- this display what is defined -> "$SCN_CORN01", not the string in LANGUAGE
"$SCN_CORN02",
"$SCN_CORN03",
"$SCN_CORN04",
"$SCN_CORN05"
};
if (messCornNr == messCornNr)
{
Print(s:messCorn[messCornNr]);
}
}The example here displays only "$SCN_CORN01 - 5".