bug with iBandsOnArray?

 
I am right in assuming there is something wrong with this variable? iBandsOnArray

The editor desciption has an example that is wrong and
definition is supposed to be
double iBandsOnArray( double array[], int total, int deviation, int bands_shift, int mode, int shift)

and the example given is
if(iBands(ExtBuffer,total,2,0,MODE_LOWER,0)>Low[0]) return(0);

but even assuming that it was a typing mistake and you meant to write iBandsOnArray

The code will not compile, only if I place an extra variable into iBandsOnArray will it allow me to compile.

otherwise I get the error incorrect variable count.
Can someone shed some light on this
the line of code I was using is
ExtMapBuffer2[i]=iBandsOnArray(CCIndex,tPr,2,0,MODE_UPPER,0);
which doesn't work.

Thanks
 
sorry, iBandsOnArray is described not right. indicator has parameters:
array[] - Array with data.
total - Items number to counting.
period - Number of periods for calculation.
deviation - Deviation.
bands_shift - Bands shift.
mode - Series array identifier. It can be any one of the Series array identifier enumeration values.
shift - Shift relative to the current bar (number of periods back), where the data is to be taken from.

thanx for found bug
Reason: