Module: Advanced Arrays

Adding Modules to help with scripting/coding plugins.
User avatar
Archive-Poster
Posts: 1090
Gender:
United States of America

Module: Advanced Arrays

Post by Archive-Poster »

This module allows for advanced arrays. It has key/value pairing for strings to ints, floats, strings and linked list support. Read the inc file for the functions.

My rule with this module: "If you have to ask, you don't know". Post a bug if you find one, the included sample file is not required (obviously) but contains some insight on how to, at a very basic level, use linked lists and keys with iterators.

Some notes on this, do not loop from 0 to list_size*()-1, as that will be a more expensive operation that using an iterator (from list_reset() and while(list_next())).

Anyway, this brings dynamic memory/array allocation home to Small =). You don't need to worry about memory issues because you only deal with references.

Enjoy

Update: the downloads below require AMXx (0.20+)
Attachments
array_amxx.zip
(39.02 KiB) Downloaded 2 times
array_amxx.tar.gz
(27.93 KiB) Downloaded 3 times

Who is online

Users browsing this forum: No registered users and 0 guests