Im trying to do a top 5 scores system for my game using this:
Where gameName is a game name and type is either round or game. The players score that would be parsed through this is stored like this:
Im trying to take that value and sort it BUT making sure there is a reference to who's score it is so that I can store it in a variable to broadcast later on in a format of "[position]. [player name] - [score of player]"
Im open to anything (using more function etc) because honestly ive been tryna get my brain around this for the past 2 hours and just cant think of a way that will work the way i want it to
Code:
function sortGameRoundIndiv(gameName: string, type: string):
Code:
{%{_type}%Indiv.%player%.%{_gameName}%}
Im trying to take that value and sort it BUT making sure there is a reference to who's score it is so that I can store it in a variable to broadcast later on in a format of "[position]. [player name] - [score of player]"
Im open to anything (using more function etc) because honestly ive been tryna get my brain around this for the past 2 hours and just cant think of a way that will work the way i want it to