Multi Slot Save system doesnt work

Thats what i’m trying to achieve with this system. If i select slot 1 for example, it makes that the current slot and saves all its data to that save file and same with all the other slots.