Quote:
Originally Posted by CrazY.
Split string, store each map name in array. In menu, run a loop, get from array as an string, and show.
|
I guess trie is better to use in this case. Especially if u have duplicates of the same map in the text file, each valid map will only be added to the trie once. With an array you'd have to loop and check if the map was already added in the array. So TrieSetCell with a value of 1 applied to the mapname is the better way to go by first checking if TrieKeyExists.