versuchs mal so:

var *testx;
var *testy;

function test()
{

testx = &arrayx[spielnum];
testy = &arrayy[spielnum];

PANEL* test_pan = pan_create("pos_x=320;pos_y=240;window(0,0,25,20,worm_bmp,testx,testy); flags=OVERLAY | VISIBLE; ",5);