Raised This Month: $ Target: $400
 0% 

Nvault crashing my server.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 11-13-2011 , 23:53   Nvault crashing my server.
Reply With Quote #1

For some reason when using Nvault it crashes on map changes.

The plugin attached is the one that's crashing.


(usually caused by a file saving null) atleast thats what i could tell.


I level up just fine and then all of a sudden on map changes it crashes with a memory error

nvault save and load

PHP Code:
    public SaveDataid )
    {
        new 
iPos szSave[(XPDATA 10) + 1];
        
        for (new 
XPDATA i++)
        {
            
iPos += formatex(szSave[iPos] ,charsmax(szSave) , "%10d" g_XP[id][i]);
        }
        
nvault_set(g_hVaultg_szAuthIDid ], szSave);
    }

    public 
LoadData(id)
    {
        new 
iPos szNum[11] , szLoad[(XPDATA 10 )+1];
        
        
nvault_get(g_hVaultg_szAuthIDid ], szLoad charsmax(szLoad));
        
        for (new 
XPDATA i++)
        {    
            
iPos += copy(szNum 10 szLoadiPos ]);
            
g_XP[id][i] = str_to_num(szNum); 
        }
        
        
g_XP[id][Class] = CLASS_NONE;
    } 
Attached Files
File Type: inc bfmod.inc (750 Bytes, 112 views)
File Type: sma Get Plugin or Get Source (BattlefieldMod-XP.sma - 353 views - 59.0 KB)
File Type: cfg battlefield.cfg (27.5 KB, 92 views)

Last edited by Doc-Holiday; 11-13-2011 at 23:58.
Doc-Holiday is offline
Reply


Thread Tools
Display Modes

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 08:34.


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