Honestly, id finish the entire game before I worried about security. The above code will not work either. Youre still changing the same integer values at the same time. Im not much of a cracker, but just watching that in memory is a dead give away that that is where your value is. The only experience I have in hacking memory code is from snes emulation haha. What you need to do is have a hash table lookup with encryption, as well as to have a non-realtime counter for the scores. For instance create a timer that once finished updates a type object for that score. Have that timer execute anywhere from 50millisecs to 2 seconds. Of course you should update the display timer visible to the player in real time. But the one you actual track and go by should not be. So yeah, basically encrypt a type object that is timer based, and have it use crazy string values. No hacker in the world would waste their time trying to crack that. :)
...what? that was so confusing i barely understood that. i got lost after u said honestly ^^. anyway wouldn't this process of hash tables and randomizing serouisely eat up your cpu performace?