hi, im trying to load a struct from a .int file
i have a menumod to test it:
if i have 'localized' in the class line i get error:
Error, Class 'localized' keyword is no longer required
if i take it out, nothing gets logged
Any ideas? I'm probably doing it totally wrong
Code:
[LocVar]
TotalPlayers=3
Player[0]=(RealName="Mike",Gender="M",Age=18)
Player[1]=(RealName="John",Gender="M",Age=21)
Player[2]=(RealName="Angie",Gender="F",Age=17)
i have a menumod to test it:
Code:
class LocVar extends UMenuModMenuItem localized;
struct Player
{
var string RealName;
var string Gender;
var int Age;
};
var config localized int TotalPlayers;
var config localized Player Players[5];
function Execute ()
{
local int x;
x = 0;
for(x = 0;x < TotalPlayers;x++) {
Log("Name: " $ Players[x].Name $ " Gender: " $ Players[x].Gender $ " Age: " $ Players[x].Age);
}
}
if i have 'localized' in the class line i get error:
Error, Class 'localized' keyword is no longer required
if i take it out, nothing gets logged
Any ideas? I'm probably doing it totally wrong