Raised This Month: $ Target: $400
 0% 

Creating and assigning data to custom handles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blinx
Senior Member
Join Date: Oct 2013
Old 07-30-2016 , 09:52   Creating and assigning data to custom handles
Reply With Quote #1

Handles seem like a good way of storing objects, however I can't seem to find any documentation or other plugins that use Handles in this way and thusly how to create data pertaining to a handle and then how to read it.

If context is important, what I'm trying to do is have an inventory based system but the items in the inventory have multiple properties (properties that'd be a mixture of variable types), and so I was thinking I would just have items in these inventories point to a Handle that would contain all the relevant properties.
Blinx is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-30-2016 , 09:57   Re: Creating and assigning data to custom handles
Reply With Quote #2

Use a (sqlite) database?
Potato Uno is offline
Blinx
Senior Member
Join Date: Oct 2013
Old 07-30-2016 , 10:50   Re: Creating and assigning data to custom handles
Reply With Quote #3

There'd be quite a lot of reading in writing, does SQL carry any significant overhead?
Blinx is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-30-2016 , 11:59   Re: Creating and assigning data to custom handles
Reply With Quote #4

You can't create your own handle types in Sourcepawn. Try the Dynamic thingamajig instead.
Miu 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 21:08.


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