AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Saving Multiple Items with one key ( nvault ) ? (https://forums.alliedmods.net/showthread.php?t=236447)

Blizzard_87 03-05-2014 06:19

Saving Multiple Items with one key ( nvault ) ?
 
1 Attachment(s)
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...

YamiKaitou 03-05-2014 07:39

Re: Saving Multiple Items with one key ( nvault ) ?
 
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

ConnorMcLeod 03-05-2014 15:11

Re: Saving Multiple Items with one key ( nvault ) ?
 
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.


All times are GMT -4. The time now is 06:02.

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