Raised This Month: $ Target: $400
 0% 

[nVault] Invalid vault id: 0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-15-2010 , 13:28   [nVault] Invalid vault id: 0
Reply With Quote #1

Im getting this error everytime the save function is called.
How do i fix this?

PHP Code:
L 05/15/2010 19:09:03: [AMXXDisplaying debug trace (plugin "myplugin.amxx")
L 05/15/2010 19:09:03: [AMXXRun time error 10native error (native "nvault_set")
L 05/15/2010 19:09:03: [AMXX]    [0myplugin.sma::Save (line 430)
L 05/15/2010 19:09:03: [AMXX]    [1myplugin.sma::client_disconnect (line 360)
L 05/15/2010 19:09:03: [nVaultInvalid vault id
The save function:
PHP Code:
public Save(iPlayer)
{    
    static 
data[256];
    new 
len formatex(datasizeof(data) - 1"%i"g_iCash[iPlayer]);
    
    for( new 
iItem 0iItem g_iItemCountiItem++ )
    {
        
len += formatex(data[len], sizeof(data) - len 1" %i"g_iItemLevel[iPlayer][iItem]);
    }
    
    for( new 
iWeap 0iWeap g_iWeapCountiWeap++ )
    {
        
len += formatex(data[len], sizeof(data) - len 1" %i"g_iWeapLevel[iPlayer][iWeap]);
    }
    
    
nvault_set(g_vaultg_iAuthIDdata); //Line 430

Client_Disconnect
PHP Code:
public client_disconnectiPlayer )
{
    
Save(iPlayer); //Line 360
    
g_first_time[iPlayer] = 0;

Global Vars
PHP Code:
new g_first_time[32];
new 
g_vault
plugin_init's nvault open
PHP Code:
g_vault nvault_open("cashmod004"); 
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:35.


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