View Single Post
DarthMan
Veteran Member
Join Date: Aug 2011
Old 05-15-2018 , 04:18   Re: [HELP] Map Menu [ TUT ]
Reply With Quote #6

Quote:
Originally Posted by CrazY. View Post
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.

Last edited by DarthMan; 05-15-2018 at 04:21.
DarthMan is offline