[INC] nVault Array
2 Attachment(s)
nVault Array
This include provides the ability to store arrays in nVault. Out of the box, nVault allows you to only save data as a single string. This is cumbersome when you need to store multiple pieces of data because you first need to convert it to a single sting before saving. On top of that, when retrieving the data you then need to parse each value out of the string and then convert it back to an integer and/or copy it back to a string/float variable. This include file solves this problem by allowing you to save and retrieve data directly to and from an array. Data of various types (int, bool, string, float) can all be stored in a single array by using an enum sized array (see example plugin). Note: This include file requires that you use a fixed version of the nVault module. During the development of these new functions, a bug was discovered in the nVault module that will result in invalid values and possibly errors. This fixed module is attached below and is also available in AMX-X dev builds >= 4589. Thanks to Arkshine for fixing this so quickly for me. Functions
Descriptions
Spoiler
|
Re: [INC] nVault Array
First Comment.
Amazing WORK BUGSYYYYYYYY |
Re: [INC] nVault Array
Quote:
|
Re: [INC] nVault Array
Awsome :D
|
Re: [INC] nVault Array
Could you also add nvault_pset_array ?
|
Re: [INC] nVault Array
Quote:
PHP Code:
|
Re: [INC] nVault Array
Hello @Bugsy, I am facing a problem regarding Loading and Saving data using nvault_array.
Players data is missing sometimes, not immediately after changelevel... they are able to play all day and tomorrow all of the data, skins, keys, etc are not in their inventory. How is that possible? Give me a hint, I am not so friendly with SQL saving and loading data.... Source: PHP Code:
|
Re: [INC] nVault Array
Shouldn't these codes:
PHP Code:
PHP Code:
|
Re: [INC] nVault Array
Quote:
---- Quote:
First I have used nvault, but because there is so much data to store I faced some issues that data strings can not be so longer and had to split in more strings and using strok method, etc, headacke, with nvault_array is much easier. but now I am facing this... |
Re: [INC] nVault Array
Quote:
Quote:
It looks like you are saving a ton of data for each player and this can likely be reduced. Can you explain what this is for? PHP Code:
|
All times are GMT -4. The time now is 23:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.