This line can cause crash pointer_text_dir[i].font = "Calibri#20";
You should use font_create. pointer_text_dir[i].font =font_create("Calibri#20");