Hi WretchedSid grin ,

Quote:
As a general rule, if you think "wouldn't it be great if XYZ would work and I could make my code cleaner", the answer is: "It does work!"
, not a bad rule, but you first have to think it / come with the idea tongue.

Quote:
memset(pointer_pan, 0, 4 * 31 * sizeof(PANEL *));
, what does memset do? Allocate memory? I can't find it as a function in the manual.

Concerning the code I am almost there, not much longer till the bug is squished. I get a crash when trying to show this text though (last line does it). It is probably something stupid but I am getting a bit dizzy of all those arrays (even when they look clearer now thanks to you and Superku).

Code:
TEXT* pointer_text_dir[4];

function init_arraysandpointers_startup()
{
 var i, j;
 //create array text dir
 for(i = 0; i < 4; i++)
 {
  pointer_text_dir[i] = txt_create(30,21);
  pointer_text_dir[i].pos_x = 10;
  pointer_text_dir[i].pos_y = 135;
  pointer_text_dir[i].layer = 21; 
  pointer_text_dir[i].font = "Calibri#20";
  vec_set(pointer_text_dir[i].blue,vector(155, 255, 155));
 }
...
} 
 
 ...
 ...

 //clean up earlier created txt strings
 var i, j;
 for(i = 0; i < 4; i++)
 {
  for(j = 0; j < 30; j++) str_cpy((pointer_text_dir[i].pstring)[j],"");
 }

...
...

filesfound_var = txt_for_dir(pointer_text_dir[0],"Folder 1\\*.mdl");
set (pointer_text_dir[0],SHOW);



Quote:
You may want to learn/read up a bit on basic programming and/or read some code written by others with experience.
, fair enough, I do already try alot through manual and sometimes AUM. And those weekly tips from e.g. Superku. I will look around some more though.