Blockland Forums > Modification Help
Subvariable Arrays?
(1/1)
tyler0:
Making an array with an extra variable under it? Kinda like this...


Your typical array
MyArray[a,y];


I need an array that will store extra data under the variable a & y

How could this be done?
Nexus:
%a = value1;
%b = value2;

$array[%a, %b] = datatostore;

It is generally a bad idea to store information you need in the name of an array.  The only type of data usually in array names are the ID by which you find the array.
Navigation
Message Index

Go to full version