Blue print conversion to c++

Ive been converting some of my blueprint code into c++. Im really confused as to why something isnt working as it works completely fine in blueprint.


ignore this solved it