NVault invalid id
I get this error when i use stock functions i created for a plugin im making. I'm using the frequentfraggerprogram's time tracking as a framework for doing this.:
Code:
L 05/14/2006 - 08:42:28: [nVault] Invalid vault id: 0Code:
This is code within a menu callback that executes add_points Code:
This is the stock function check_vault- i know that this is working fine and returns the correct number. Code:
There are three compiler warnings Code:
//AMXXPC compile.exe |
Why don't you do the normal and smart thing of opening a vault once on plugin_init() and closing it on plugin_end() and store the vaultid as a global variable?
|
I've created constants for that:
like #define VAULT_GRAVITY "gravity" and such. Also, the methodology used in the frequent fragger program didn't involve opening and closing on init and end, and this is my first experience with nvault, so I didn't do that. |
Keeping the handles open is a good idea. Re-opening them means re-mapping the file into memory which is expensive, and closing them means re-mapping memory back to disk.
|
That's good information for optimization, but can anyone point out for me an error or get me on the right track?
|
| All times are GMT -4. The time now is 16:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.