yes thats what i mean but it doesnt work.
This is what I did...
Code:
 

PANEL* icon1;
PANEL* icon2;

panel icon_enemy
{
bmap=i_enemy;
pos_x=10;
pos_y=10;
layer=11;
on_click=summon_enemy;
flags = overlay, refresh;

}




then I copyed icon_enemy panel in icon1 and 2 like this.
Code:
  

if (i==0)
{
icon1=icon_enemy;

icon1.pos_x=main_slot2_pan.pos_x+16;
icon1.pos_y=main_slot2_pan.pos_y+17;
icon1.visible=on;
icons[i]=1;
}

if (i==1)
{
icon2=icon_enemy;

icon2.pos_x=main_slot3_pan.pos_x+16;
icon2.pos_y=main_slot3_pan.pos_y+17;
icon2.visible=on;
icons[i]=1;
}




So now first i=0 so it copys panel to icon1 and sets icon1 position.
Then i=1 and copys panel to icon2 and sets icon2 position and suddenly
icon1 dissaperes. which i dont want i want both icon1 and icon2
to be visible, and when i click on them they both have to call the same function.

Tnx for your help.