Probiers mal so:

function count_up_skill(button_number, PANEL* panel)
{
snd_PLAY(click,50,0);
if (button_number == 1) { player.SKILL40 += 1; }
if (button_number == 2) { player.SKILL41 + = 1; }
if (button_number == 3) { player.SKILL42 += 1; }
}

PANEL* skill_pan =
{

button = 0,0,on_map,off_map,off_map,count_up_skill,NULL,NULL;
button = 0,10,on_map,off_map,off_map,count_up_skill,NULL,NULL;
button = 0,20,on_map,off_map,off_map,count_up_skill,NULL,NULL;

}

Last edited by fogman; 03/18/08 12:04.

no science involved