This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

DataPacks: Heterogeneous Container


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 03-22-2009 , 20:57   DataPacks: Heterogeneous Container
Reply With Quote #1

These stocks are meant to mimic Sourcemod's data packs functionality, and complement CellTrie/CellArray, allowing heterogeneous data in the same container to be accessed by index.

Storage is done in nested CellArrays, and there are no size limits other than those imposed by them, if any.

They'll be specially useful to pass data to/from callbacks and forwards.

Changelog:
Code:
22/03/2009
    Initial Release
23/03/2009
    Fixed DataPack_GetString not returning the proper string length
    Fixed accidental removal of stock modifier from functions
PS: I'll be posting an example script soon.
Attached Files
File Type: inc DataPacks.inc (6.5 KB, 373 views)
__________________

Community / No support through PM

Last edited by danielkza; 03-22-2009 at 23:23.
danielkza is offline
 



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


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