AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Nvault crashing my server. (https://forums.alliedmods.net/showthread.php?t=172027)

Doc-Holiday 11-13-2011 23:53

Nvault crashing my server.
 
3 Attachment(s)
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;
    } 



All times are GMT -4. The time now is 08:34.

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