///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////


PANEL* main_menu=
{
bmap = "background1.pcx"; //bankground image
pos_x = 0;
pos_y = 0;
button (300, 150, "file.pcx", "file.pcx", "file.pcx",a, NULL, NULL,);
button (300, 250, "intro.pcx", "intro.pcx", "intro.pcx", NULL,NULL,NULL,);
button (300, 350, "credits.pcx", "credits.pcx", "credits.pcx", NULL,NULL,NULL,);
flags = VISIBLE | OVERLAY;
}

PANEL * load_play =
{
bmap = "background1.pcx";
pos_x = 0;
pos_y = 0;
button (300, 150, "file.pcx", "file.pcx", "file.pcx",NULL, NULL, NULL,);
flags = VISIBLE | OVERLAY;
}

function a()
{
load_play.visible=on;
}

function quit_program()
{
while (key_any) {wait (1);}
sys_exit(NULL);
}

SOUND* explo_snd = "gamesnd.wav";

function click()
{
snd_play(explo_snd,100,2);
}


what's wrong with this code that i've made.. everytime i run, it contains errors which is the .visible is not part of panel? can you help me to fix this bugs..