can't make it work,please help the dot still stays at 0,0
///////////////////////////////
bmap bmap_minimap001="er.bmp";
bmap bmap_player_dot="player_dot.bmp";
var level_width[2]=1600,-1600;
var level_height[2]=1600,-1600;
var minimap_size[2]=256,256;
entity* guard_mdl_2754;
panel panel_minimap00
{
bmap = bmap_minimap001;
pos_x = 0;
pos_y = 0;
;

flags = refresh,visible;
alpha = 100;
layer=3;
}
panel panel_player_dot000
{
bmap = bmap_player_dot;
pos_x = 0;
pos_y = 0;

flags = refresh,visible;
alpha = 100;
layer=4;
}

function minimap
{

panel_player_dot000.pos_x = panel_minimap00.pos_x + minimap_size.x * (guard_mdl_2754.x/(level_width[1]-level_width[2]));
panel_player_dot000.pos_y = panel_minimap00.pos_y + minimap_size.y * (guard_mdl_2754.y/(level_height[1]-level_height[2]));

panel_player_dot000.visible=on;
panel_minimap00.visible=on;

}


"I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know."
————Donald Rumfeld