if(ticket>0 && TimeCurrent()==Ordercontroltime) //Falsch if(ticket>0 && TimeCurrent() > Ordercontroltime)//Richtig