Previously it was in score order but ID's were in room order. the cause was pretty strait forward when i finally dug into the code.
Before the array was being re-ordered. That was working fine but when it sent the name index it was just using a for loop and sending i (not touching the re-ordered index) which meant the value for which name it was would always be in order 0, 1, 2 etc.. in the room/connection to server order.
I just applied the same logic Angelo used in another part (during play the combo/grade/score update thingy) and have another for loop (as j) inside the original using the original array and when the array values are equal instead of using i it uses the j value instead of i.
Long story short scores now are in score descending order and names match their score/counts.Statistics: Posted by houkouonchi — Thu Oct 18, 2012 12:24 am
]]>