18.11.2016, 09:23
Hello, I've been trying to figure out how to create a standings system, that is sorting players in an array according to their points.
I have player variables: vScore[MAX_PLAYERS], and an array vTop10[10] (which is supposed to store players with highest score, descending)
But to be honest I can't wrap my head around on how to do it. Could you give me any hint on how should I approach vTop10?
I have player variables: vScore[MAX_PLAYERS], and an array vTop10[10] (which is supposed to store players with highest score, descending)
But to be honest I can't wrap my head around on how to do it. Could you give me any hint on how should I approach vTop10?