PANEL* creditbutton3 =
{
bmap = goclicked;
pos_x = 10;
pos_y = 300;
button(0, 0, goclicked, gonorm, goover, ???????, NULL, NULL);
flags = OVERLAY | SHOW;
}

That will give you errors, replace '???????' with NULL or a different function.

Apart from that i can't see much wrong with it. Which button is causing the problem?