Raised This Month: $ Target: $400
 0% 

3 Dimensional array using ArrayCreate()?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AdrenalinesWrath
Junior Member
Join Date: Aug 2017
Old 12-29-2021 , 18:56   3 Dimensional array using ArrayCreate()?
Reply With Quote #1

Greetings,

I have been using the "normal" method of creating arrays for example:
Code:
new some_array[33],
some_other_array[33][128];
And I read here that it's not really good for performance specially when it comes with looping, not sure tho.

lately I started using ArrayCreate, which works great on my end, but I'm lost in ideas using it in 3D arrays, for example: new some_array[32][64][128];

the only idea i think of is creating a normal array then using it inside an "Array:" example:

Code:
new some_array[64][128];
new Array:another_array;

another_array = ArrayCreate(32,1);
ArrayPushArray(another_array,some_array[ID])
untested but, is there another method? or a better one? thanks in advance.
AdrenalinesWrath 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 11:32.


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