Having trouble controlling 3 Row Seven Segment with 4 shift register 74hc595

zifank:
yes i change, length of digit is 6 digit/rows,

The length of the array is 6 but the indexes are 0 to 5. So 6 is not a valid index.