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 lastbar, curbar;
static datetime lastbar = 0;
datetime curbar = Time[0];
if(lastbar!=curbar){
lastbar=curbar;
return(true);
}else{
return(false);
}
}