Raised This Month: $ Target: $400
 0% 

Saving Multiple Items with one key ( nvault ) ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-05-2014 , 06:19   Saving Multiple Items with one key ( nvault ) ?
Reply With Quote #1

is it possible to save multiple locations under the one key?

im trying to add the ability to save locations for teleport in nvault...

but as i started it soon seemed impossible...

this is for my Advanced Teleports plugin.

line 440 is where i started to create the save function.. but got a blank on how i would go about it...
Attached Files
File Type: sma Get Plugin or Get Source (amx_advanced_teleport.sma - 235 views - 12.2 KB)
__________________
Blizzard_87 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-05-2014 , 07:39   Re: Saving Multiple Items with one key ( nvault ) ?
Reply With Quote #2

For starters, authid is a string, not an int.

To save multiple items, simply separate them by some kind of delimiter. Since your probably saving origins, format the 3 origin values together separated by commas and then format the multiple origins by spaces
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-05-2014 , 15:11   Re: Saving Multiple Items with one key ( nvault ) ?
Reply With Quote #3

I would save in dynamic arrays during map, and write/read a file when map is changing.
Dunno how long is the max string you can save in nvault.

Or may be sql system if you are familiar with it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 06:02.


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