This wouldn't be a flipper, it would be the Ball Launcher...maybe they are known as flippers two in the "parlance", I don't know; I never was a pinball wizard
Seems like you haven't set you constraint axis vector:
Code:
function init_flipper()
{
var constraint1[3]=1,0,0;
phcon_add(ph_slider, my, 0);
ph_con_setparams2(constraint1, vector(50,0,0),nullvector,nullvector); //this gives an error
while(my!=null)
{
temp.x=-spring+random(200)-100;
temp.y=0;
temp.z=0;
//punch ball out shoot
phcon_setmotor(constraint1, temp, nullvector, nullvector);
sleep(1);
}
}