- Home /
Identifier Expected Error ArrayList
I'm getting an Identifier Expected error and I don't understand why. I'd appreciate if someone could explain where I've messed up here.
Here is the code:
void Start()
{
ArrayList scoresArray = new ArrayList();
for (int i = 0; i < 10; i++)
{
scoresArray.(PlayerPrefs.GetString("Highscore" + i));
}
}
Comment
Best Answer
Answer by Rod-Green · Dec 30, 2011 at 05:34 AM
void Start()
{
ArrayList scoresArray = new ArrayList();
for (int i = 0; i < 10; i++)
{
scoresArray.Add(PlayerPrefs.GetString("Highscore" + i));
}
}
Your answer
Follow this Question
Related Questions
Getting data from Arraylist within Arraylist 0 Answers
Using a Parameterized arraylist (C#)??? 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers