Started by
GuerraReturns
on
Topic category: Help with MCreator software
Sorry for bad english.
I have 13 Numbers, i need take the highest number, how i can do?
For example: 1,5,3,4,7,1,2,9,3,4,6,2,3
Well, here the higher number is "9", but how i can write this inside the procedure? (obviusly numbers are random)
This is for a vote system for maps.
I have 13 maps, i need select the map by voting (1 vote, +1 Global variable for the map)
I ALREADY WRITE THIS: (map 1 > map 2 and map 1 > map 3 and map 1 > map 4 etc...) for all maps (and the game need calculate it in 1 tick.............), but is too heavy for the mod and not change my "SelectedMap" global string variable to the map name...
Any idea?
Edited by GuerraReturns on Tue, 11/17/2020 - 01:29
Some code like this should work:
At the end of the while loop, the map number you want will be in largestIndex