This site requires JavaScript, please enable it in your browser!
Greenfoot back
SPower
SPower wrote ...

2012/4/30

Resetting the User's Info

SPower SPower

2012/4/30

#
Hi all, I've got a problem with this code;
if (UserInfo.isStorageAvailable() ) {
       if (player != null) {
                for (int i = 0; i < 10; i++) {
                    player.setInt(i, 0);
                    player.store();
                }
       }
}
What this should do is reset all the integers the user has in the UserInfo class. But this doesn't reset the second integer, that still is 2 after this code. Can someone help me? Thanks
SPower SPower

2012/4/30

#
Nevermind: I've got it working.
You need to login to post a reply.