nVault help
I'm getting a warning with the nvault_lookup function...I'm not exactly sure how to check by key and see if an entry is already there...the warning says: "warning 202: number of arguments does not match definition" will this still work with the warning or am I using it wrong?
Code:
I'm also getting an error with the nvault_get function...I'm not exactly sure how to use this now compared to the old vault way...the error is saying: "error 033: array must be indexed <variable "vault_time">" Code:
|
Its used like so:
Code:
Code:
Code:
To remove on key and value use Code:
|
so how would I go about finding if an entry is already in the vault? nvault_lookup looks like the only function that would work but the only data I have right now is their key...is there anyway with the nvault to find if an entry is in the vault already by providing their key like with the old vault system?
|
Use that last scripting part with the if(!nvault_lookup(.....
If its not there whatever is in the if statement will be called if it is there all the output data will be outputted. |
anyone have any idea about the nvault_get error?
Quote:
I'm going to try and get it working with all nvault_lookup's and see if it works... :? |
1 Attachment(s)
ok I got it compiling...and when I ran it on my server it started up fine but whenever you bought anything the server would crash and give this error in the logs:
Quote:
Quote:
|
dont use nvault_close at all, it causes a crash. I brought this up to BAIL already.
|
Yea i found that out myself. Open the vault in plugin_init just dont close it anywhere and your good
|
alright well that fixed the crash problem but now I can buy just fine (I even added prints to show me what it was reading from the vault and it works fine when buying) but when I type /credits it will set my credits to 0 for some reason...and the journel is always size 0 and the vault never shows up
are there any other problems with the nvault that I should know about?...lol I was hoping I could get some pruning going :cry: |
it works fine for me.....
Heres a sample Code:
|
| All times are GMT -4. The time now is 14:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.