C++ Strange problem with closing door when actor end overlap

Guys, I have strange problem I am learning c++ and I want to make door open on begin play (this works) and closed when player end overlap the trigger. I have only one scrpit. Player is in this trigger when start game.



The problem is that my VS2017 underline and get error here (PHOTO)
Someone can help me plz :wink:

1.I know that my variables is not in English
2.I know that making it in BP is better and easier