Raised This Month: $61 Target: $400

[SP] ConfigMap: StringMap & SMCParser

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 12-20-2020 , 15: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:
int GetInt(const char[] key_path, int& i, int base=10);

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

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)
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 12:45.
MAGNAT2645 is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 04:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode