C++ get/set any variables dynamically using strings?

it works but not for the save game flags in BP, How can I get this to work with the save game flag?