byte Array

Hello,

I made a byte Array and everything works fine as long as the number is lower than 250 or something like that.

byte[ ] bytesNew = new byte[10];
if (match.Data == null) {
countgames = 1;
bytesNew [0] = 1;
bytesNew [1] = byte.Parse (mainscriptminigames.minigame.ToString ());
bytesNew [2] = byte.Parse(Random.Range(1,3).ToString());
bytesNew [3] = byte.Parse(Random.Range(1,3).ToString());
}
else
{
bytesNew = match.Data;
countgames = int.Parse(Games.mymatch.Data[0].ToString());
countgames++;
bytesNew [0] = byte.Parse(countgames.ToString());
}

bytesNew [countgames + 3] = byte.Parse(“225”);

It works fine if the red number is lower than 275(not exactly, 275 didn’t work, 255 worked)
Is there a limit in a byte array or am is anything else wrong?

I hope anyone can help me

A byte can’t go higher than 255.