here's the code(a cut something that isn't connected with this problem)
#define health skill5;
ENTITY* playertwo;
PANEL* health_bar=
{
digits(10,10,"HP %0.f",standard_fontr,1,playertwo.health);
hbar(60, 10, 250, "vita.bmp", 1, playertwo.health);
flags= VISIBLE;
}
function main()
{
video_mode=7;
level_load("buildings.wmb");
}
action main_player()
{
playertwo=me;
my.health=200;
}