nvault_set_array integer key
What can I do if I want to use an integer as a key when using nvault_set_array? It only supports string which isn't useful for me. I'm unable to use player name/steamid as the key because there will be multiple entries from the same person. So that's why an integer would be the ideal thing.
|
Re: nvault_set_array integer key
There should be no reason for multiple rows, why not pack all data into 1 array?
|
Re: nvault_set_array integer key
Quote:
PHP Code:
|
Re: nvault_set_array integer key
Lets start with explaining what you are trying to accomplish.
|
Re: nvault_set_array integer key
Quote:
I'm doing a menu that lets players create messages that get stored in nVault, and then people with specified access can see every stored message. |
Re: nvault_set_array integer key
That was based on what you stated in your first post. What do you plan to use as an integer key that will be unique to the player? Numbers from the steamid?
|
Re: nvault_set_array integer key
Quote:
|
Re: nvault_set_array integer key
I'm not really going to bother figuring out a proper saving system, maybe bugsy will.
If you want to use integer as key then use num_to_str. |
Re: nvault_set_array integer key
Quote:
Quote:
|
Re: nvault_set_array integer key
Its not something worthwhile to implement in nvault array since ultimately nvault array will need to convert the number back to a string to use it as the key. This limitation is at the nvault module level, not nvault array.
|
| All times are GMT -4. The time now is 12:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.