Quote:
Originally Posted by edon1337
In my .ini file I put the ARM Name as a string, ex: "ARM_MP5" and when I read it I use str_to_num to make it an integer, is that correct?
|
No, you need a string->int map (i.e. Trie) if you want to convert a enum string to integer.
__________________