but why i can't use this code in function ? i gave an error message that says pos_x is not member of function . sorry if these are so simple question .

Code:
function change(clicked_panel)
{
	PANEL* backgroundpan = pan_create("bmap = panels_bmp; pos_x = 0 ; pos_y = 0 ; alpha = 50 ; flags = SHOW | TRANSLUCENT; ",3);
	
	if(0 == object_one)
		backgroundpan.pos_x = clicked_panel.pos_x ;
		
}