AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Creating and assigning data to custom handles (https://forums.alliedmods.net/showthread.php?t=285757)

Blinx 07-30-2016 09:52

Creating and assigning data to custom handles
 
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.

Potato Uno 07-30-2016 09:57

Re: Creating and assigning data to custom handles
 
Use a (sqlite) database?

Blinx 07-30-2016 10:50

Re: Creating and assigning data to custom handles
 
There'd be quite a lot of reading in writing, does SQL carry any significant overhead?

Miu 07-30-2016 11:59

Re: Creating and assigning data to custom handles
 
You can't create your own handle types in Sourcepawn. Try the Dynamic thingamajig instead.


All times are GMT -4. The time now is 21:08.

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