I have start a new script file and when I set the command to load the map in function main than it works fine but so:

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

BMAP* first_pcx = "first.pcx";
BMAP* schriftzug = "schriftzug.pcx";
BMAP* cursor = "cursor.pcx";

PANEL* first_pan = // my first panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
}

PANEL* schriftzug_pan =
{
pos_x = 80;
pos_y = 380;
layer = 2;
bmap = schriftzug;
button (1,1, "schriftzug.pcx", "schriftzug.pcx", "schriftzug.pcx", castel, NULL, NULL);
}

function main()
{
mouse_map = cursor;
video_mode = 8;
video_screen = 1;
first_pan.flags |= VISIBLE;
schriftzug_pan.flags |= OVERLAY | VISIBLE;
}

function castel()
{
level_load("Level.wmb");
wait(1);
}


it also doesn´t work. Game will be started and I see the button but nothing happens when I click on it