why does my function return no result?

 

Hi all,

 

below is my code:

 

int init()
  {
//---- indicators

   int a[] = {4,5,6};
   int c;
   
   for( int z=0; z<ArraySize(a); z++ )
   {
      c = call(z);
      
      Alert("c= "+c);
   }   
   
//---- 
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
//----
//----
   return(0);
  }
//+------------------------------------------------------------------+

void call(int z)
{  
   int d[] = {4,5,6};
   
   int c = d[z];
   
   return(c);
}

 

when I compile it, MT4 showed function returns no result, why?

 

pls help!

 

wing 

 

Because its of type void for starters.

void call(int z)
 
ubzen:

Because its of type void for starters.

 


hahahaha, I get it!

 

thank you!