Raised This Month: $ Target: $400
 0% 

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: MAGNAT2645
Forum: Snippets and Tutorials 12-20-2020, 14:09
Replies: 11
Views: 17,169
Posted By MAGNAT2645
Re: [SP] ConfigMap: StringMap & SMCParser

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[]...
Forum: Snippets and Tutorials 09-28-2020, 07:09
Replies: 11
Views: 17,169
Posted By MAGNAT2645
Re: [SP] ConfigMap: StringMap & SMCParser

That's just a stock which returns true (only if string treated as true) or false (in any other case), you don't have to use it. It was just an example of simple/advanced conversion.
Forum: Snippets and Tutorials 09-27-2020, 02:34
Replies: 11
Views: 17,169
Posted By MAGNAT2645
Re: [SP] ConfigMap: StringMap & SMCParser

I have this stock:

#define _BOOL(%1) view_as< bool >( %1 )

stock bool StringToBool(const char[] str, bool simple=true) {
if ( simple )
return _BOOL( StringToInt( str ) );

if ( strcmp(...
Forum: Snippets and Tutorials 09-25-2020, 07:59
Replies: 11
Views: 17,169
Posted By MAGNAT2645
Re: [SP] ConfigMap: StringMap & SMCParser

You can put __nullable__ into methodmap definition like

methodmap ConfigMap < StringMap __nullable__ {


and then you are able to use
ConfigMap hCfg = new ConfigMap();

EDIT: Nevermind, it...
Forum: Snippets and Tutorials 11-21-2019, 10:13
Replies: 11
Views: 17,169
Posted By MAGNAT2645
Re: [SP] ConfigMap: StringMap & SMCParser

Is there any way to include ConfigMap to Voice Changer (https://forums.alliedmods.net/showthread.php?t=281143)? I just don't want to use KeyValues loop every time NormalSoundHook is called.
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT -4. The time now is 11:02.


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