'doorlock' does not name a type

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

what is the source of your code?