and one more thing that could help:
Code:
// 2D array [dim1][dim2] :

	short** myarray = NULL;
...
	myarray = (short**)sys_malloc( (int)dim1length * sizeof(short*) );
	for(i=0;i<dim1length ;i++)
		{
			myarray[i]	= (short*)sys_malloc( (int)dim2length  * sizeof(short) );
			for(j=0;j<dim2length;j++)
				{
					(myarray[i])[j] = 0;
				}
		}



Free world editor for 3D Gamestudio: MapBuilder Editor