|
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; public class DiceGame : MonoBehaviour { private const int max = 6; private string btnText = "Press to roll"; public static string FacebookId = "1"; private Dictionary<string, int> scores; //The key is the facebook id, value is his score. private Dictionary<string, Texture2D> fbProfileImages = new Dictionary<string,Texture2D>(); } In line 66 which is "int score = int.Parse(parts[1]);" is error array index is out of range. i've already find other similar topic but i can't slove this problem and i can't Build my project. But it's work if i put variable manually "int score = 999;" which is not the point of using split array Please help me rewrite the code thank you.
(comments are locked)
|
|
i will make sure that i'm getting a response from "get_highscores.php" and i'll tell you when i can verify. Thank you for your answer :)
(comments are locked)
|
|
I'm not sure it's an issue with the code, are you certain the script is getting a response from the "get_highscores.php" file? And, if it is, is it in the right format?
(comments are locked)
|
