From the manual:
pixel_to_vec(COLOR* color,var alpha,var format,var pixel);

You have to use a Vector or Color at the first parameter not a array.
This should solved your problem.
EDIT : shocked I dont see your secound post ... I need glasses! argh!

Last edited by Ralph; 05/01/09 10:56.