try printing the length of all arrays you are using in this block
for (int index4 = 0; index4 < letters.Length; index4++)
{
if (letters[index4] == hits[index3][0].ToString())
{
hitsX = index4;
}
}
if (hits[index3].Length == 3)
{
hitsY = (int.Parse(hits[index3][1].ToString() + hits[index3][2].ToString())) - 1;
}
else
{
hitsY = (int.Parse(hits[index3][1].ToString())) - 1;
}
Please mark as answer, if you find this post helpful. Thanks Deepak Kalra
No comments:
Post a Comment