Download

Problem in saving the record

I am doing an infinite racing game, everything is going well, but I have a problem in saving the record, can someone tell me what is wrong with my logic? Thanks