Raised This Month: $51 Target: $400
 12% 

Keyvaluestostring


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-02-2015 , 22:45   Keyvaluestostring
Reply With Quote #1

There was a stringtokeyvalues function added, which is great, but there is no keyvaluestostring function. Are there any plans to add this, or a way to write it in sm? I'm not sure how I'd go about dumping keyvalues to a string... I could do something bad like use a file, and write to file, then read the file line into the string or something, but this is the same problem stringtokeyvalues was created to solve.

Basically I need to store some kvs in mysql, some simple vdf configurations as text fields... I can get them out just fine using stringtokeyvalues, but can't put them back in
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 05-03-2015 , 00:29   Re: Keyvaluestostring
Reply With Quote #2

Dump them. It's not that hard.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-03-2015 , 01:50   Re: Keyvaluestostring
Reply With Quote #3

I dont know what structure they will have as it's user generated, so would have to parse each
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 05-03-2015 , 10:02   Re: Keyvaluestostring
Reply With Quote #4

Yes. Exactly what any other code would have to do. Well you wouldn't parse it, you would traverse it. Performance difference.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 05-03-2015 at 10:03.
Dr. Greg House 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 23:58.


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