Problem when saving integer variable

Hello, I’m trying to save an integer of some keys that are obtained in different levels, I can not save them or stay when I change the level, how can I solve it? I attached a couple of photos. (cubos conseguidos)
is the variable of firstPersonPlayer and (cubos_guardar) is the variable of savegame