'doorlock' does not name a type

I'm not a troll i gust have no idea what i'm doing. i need help.