View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-08-2014 , 16:44   Re: [ TUT ]Dynamic Array
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
But, before we start what is a regular array ? This quote from wiki is self explanatory:


However, you are limited to only 3 dimensions.
Code:
//This is completly valid new test[34][34][45] //This will throw an error new test[34][34][45][87]

But, let's go back to the topic. A dynamic array basically do the same, but you can have unlimited storage space, with an dyn array you assign data to a cell. If you want a comparasion between tries and dyn arrays read this: https://forums.alliedmods.net/showthread.php?t=88396
Dynamic arrays are limited to two dimensions, FYI. The first dimension if dynamic and the second is static.
__________________

Last edited by fysiks; 10-08-2014 at 16:45.
fysiks is offline