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

2014/5/1

UserInfo.getTop(10)

karolis karolis

2014/5/1

#
and the output i receive is
[greenfoot.UserInfo@3e6225274, greenfoot.UserInfo@1d8902ab]
(only in a code bracket cause the website cannot display this) with the string between @ and , being different each time the code is executed even though inside the storage.csv the contents are Karolis 840 0 0 0 0 0 0 0 0 0 0 player1 170 0 0 0 0 0 0 0 0 0 0 Is there any way i could print out the player names and scores?
karolis karolis

2014/5/1

#
Multiple player names and scores* Or is it only possible to print the current players score?
davmac davmac

2014/5/1

#
You just need to loop through the users (the list returned by UserInfo.getTop(...)), and print their name and score.
You need to login to post a reply.