View Single Post
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 12-20-2020 , 14:09   Re: [SP] ConfigMap: StringMap & SMCParser
Reply With Quote #11

Sorry for long silence. I tested ConfigMap.GetBool, works perfect (last test: 0.000090 sec).
You should update include with this method. Also, fix typo in description:
Code:
int GetInt(const char[] key_path, int& i, int base=10);

int GetFloat(const char[] key_path, float& f); // int to float
Nevermind

You should post some example about iterating sections and keys (and there's a problem with random sorting, i know that's the StringMap feature)

Last thing: fix typo on GitHub Wiki (about escaping dots)
Quote:
If you're trying to access a key such as "mywebsite.com", then you'd have to use a string like "mywebsite.com" to access the value.
__________________

Last edited by MAGNAT2645; 01-03-2021 at 11:45.
MAGNAT2645 is offline