AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   nvault limit (https://forums.alliedmods.net/showthread.php?t=155036)

Nyuszy 04-16-2011 18:20

nvault limit
 
is there a size limit for nvault?

Bugsy 04-17-2011 10:15

Re: nvault limit
 
Code:

/* nVault File Format

VAULT_MAGIC (uint32)
VAULT_VERSION (uint16)
ENTRIES (int32)
[
  TimeStamp (int32)
  KeyLen (uint8)
  ValLen (uint16)
  KeyData ([])
  ValData ([])
]

The data-type that reads the number of entries in a given nvault file is an int32 so 2,147,483,647. I don't know if AMX-X or HL will give you a problem if you try to open a giganticly sized file, though.

Nyuszy 04-17-2011 11:45

Re: nvault limit
 
so can i use nvault for saving bans (max ~5000 entry i think...) or better if i use sqlite (sqlvault)?

Bugsy 04-17-2011 14:23

Re: nvault limit
 
Sure, nvault will work for ~5000.


All times are GMT -4. The time now is 20:10.

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