View Single Post
  #5 (permalink)  
Old 02-26-2008, 02:36 AM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Ha! I didn't even catch that at first glance :-p
Mach, this is how it should look. int start() is a method. make sure your method declaration is never within another method. like this.

PHP Code:
int start(){
 
   return(
0);
}

bool NewBar(){
   
int lastbarcurbar;
   static 
datetime lastbar 0;
   
datetime curbar Time[0];
   if(
lastbar!=curbar){
      
lastbar=curbar;
      return(
true);
   }else{
      return(
false);
   }

__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
Reply With Quote