Hi All
How do I convert this js script to be #pragma strict friendly?
I keep getting the error the ‘Object’ does not support slicing. So I understand that the object in the array should be predefined to a string so that when it is pulled out the program knows how to treat it. All my efforts have failed please help:) Thanks!
scores = new Array(); // All scores are in this array - new is used to reset array
scores.Push(new Array()); // Create a new array in a array
// scores => new array
scores[0].Push(new Array()); // Now add another array in to the 0 index place of an last array, this array has index 0
scores[0].Push(new Array()); // Now add another array, this array has index 1
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - Time","9999.99"));
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - Name","New Player"));
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - i",""));
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - q",""));
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - a",""));
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - c",""));
scores[0][1].Push(PlayerPrefs.GetString("sc"+cp.ToString()+" -"+lvl.ToString()+"-1 - k",""));