View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-19-2017 , 16:59   Re: [ TUT ]Dynamic Array
Reply With Quote #14

Quote:
Originally Posted by HamletEagle View Post
Try to use this in a plugin and compile:
PHP Code:
 new g_newArray[] 
It won't work. Arrays in pawn have a fixed size, which you must specify. Dynamic array allows you to go around this limitation and have unlimited storage space. If you know how much you will store, then likely dynamic arrays are not needed.
You would commonly use them where you don't know how many data will be stored(for example when reading a file with a custom configuration made by user).


That's not 2 dimensional, it's 3 dimensional. A bi-dimensional would be new test[34][34]. It's like a matrix.

3.What kind of explanation you want? Anyway, I know I should re-write this, it's old and I don't like how it is right now.
Thanks, I'm trying to understand this tutorial.

3. Like a simple explanation, what they are, where to use them..
__________________
edon1337 is offline