not all control paths return a value

 

I have an indicator that shows in a sepparate window arrows and lines, but i want it to show only arrows in the chart, so i was trying to make some modifications and i keep receiving this error (not all control paths return a value), the indicator isn't working.

This is the new code:

<Decompiled code deleted>

And this is the original code:


<Decompiled code deleted>

Can someone help me please?

 
   bool Li_100 = TRUE;
   for (Li_96 = Li_92 - 2; Li_96 >= 0; Li_96--) {
      Buffer4[Li_96] = 0;
      Ld_8 = Buffer1[Li_96 + 1];
      Ld_0 = Buffer1[Li_96 + 2];

Ask the owner of the source code to give it to you or have him fix it for you.

De-compiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to that theft.
          See also forum.MQL4.com/41864#490649

If you post decompiled code again, you will likely be banned.

Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because "someone uploaded it, I don't know why I can't use that"?

Reason: