ArraySize of spreads wont loop
for(int iCnt=ArraySize(iS); iCnt>=0; iCnt--){ ⋮ else{iS[iCnt]=iS[iCnt+1];}
Array exceeded. iCnt is the size of iS. Therefor indexes of iS are [0 … iCnt - 1]
William Roeder:
Array exceeded. iCnt is the size of iS. Therefor indexes of iS are [0 … iCnt - 1]
Yes Sir -
Thankx
Brian Lillard:
Yes Sir -
Thankx
You also want it to be
for(int iCnt =ArraySize(iSp)-1; ...
Confusing how ArraySize doesn't work in a loop.
I am looping the array elements to move all down and update the zero array with the latest spread.
The string should show the spreads like "5 3 1 1 7 4 4 3"