alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
489 stars 197 forks source link

[nVault] Allow iterator of all keys #1051

Open tjanok opened 2 years ago

tjanok commented 2 years ago

It would be great to get all keys within a vault file. With it being implemented as a hash map, could just bring out a large string buffer containing all keys.

I like saving small key/value pairs, but sometimes I need to compare all values, but without knowing the keys i'm dead in the water.

(Please don't suggest SQL(lite))

xLeviNx commented 2 years ago

Are you looking for something like this: https://forums.alliedmods.net/showthread.php?t=66657 ?

tjanok commented 2 years ago

Are you looking for something like this: https://forums.alliedmods.net/showthread.php?t=66657 ?

No sir - I'd like to do it from within the module/a plugin.

xLeviNx commented 2 years ago

From my knowledge, not possible unless you use sql or so

rivit98 commented 2 years ago

Maybe this - https://forums.alliedmods.net/showthread.php?t=139584

@tjanok