Raised This Month: $ Target: $400
 0% 

Dynamic arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-26-2009 , 15:41   Dynamic arrays
Reply With Quote #1

Hi.

I'm searching all informations about dynamic arrays - funcwiki doesnt have it.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-26-2009 , 15:48   Re: Dynamic arrays
Reply With Quote #2

OMG! I was just looking for info about Dynamic Arrays too!

But I think I understand it now. Though I'm not going to post here any info about it, as I might find myself wrong and confusing you.
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯
Dores is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 01-26-2009 , 15:58   Re: Dynamic arrays
Reply With Quote #3

the only information i know you can find in the include file:

/scripting/include/cellarray.inc
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-26-2009 , 17:04   Re: Dynamic arrays
Reply With Quote #4

What do you want to know ? There are already a lot of plugins using dynamic array. ( Like the default plugin )
Arkshine is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-26-2009 , 18:31   Re: Dynamic arrays
Reply With Quote #5

What profits give using dynamic arrays ?
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-26-2009 , 19:04   Re: Dynamic arrays
Reply With Quote #6

The *only* benefit to dynamic arrays is that you won't require the user to recompile your plugin to increase or decrease the number of elements in the array. I'd argue that in every other way, static arrays are better.
__________________
Brad is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-27-2009 , 04:08   Re: Dynamic arrays
Reply With Quote #7

I would not say *only* because even if static array is faster, dynamic array can be very useful sometimes, like to manage more easily an array. (add, insert, delete )
Arkshine is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-27-2009 , 04:27   Re: Dynamic arrays
Reply With Quote #8

What I like also is that dynamic array handles can be passed around at will. This could be useful for inter-plugin communication.
__________________

Community / No support through PM
danielkza 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 01:49.


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