Yeah the error is gone but as you said, it won't print, are you sure that I should call the function form main()? because if I set a 3d model to SHOW it starts to flick.

The actual code looks like this:



void print_screen(){
wait(-2);
ShellExecute(0,"print","printfile0.jpg","","",1);
reset(map_3d,INVISIBLE)
}

void main()
{

video_mode = 8; // run at 1024 x 768 pixels
video_screen = 1;
handle = media_loop("TheOne.mp3",NULL,50);
mouse_map = arrow;
mouse_mode = 4;
execute_program();
on_space = print_screen;

}