You don`t can use a entity skill in a paneldefinition.
digits(10,10,"HP %0.f",standard_fontr,1,playertwo.health);
hbar(60, 10, 250, "vita.bmp", 1 playertwo.health);
Use a var:
var hbar_health
#define health skill5;
ENTITY* playertwo;
PANEL* health_bar=
{
digits(10,10,"HP %0.f",standard_fontr,1,hbar_health);
hbar(60, 10, 250, "vita.bmp", 1, hbar_health);
flags= SHOW;
}
function main()
{
video_mode=7;
level_load("buildings.wmb");
}
action main_player()
{
playertwo=me;
my.health=200;
hbar_health = my.health;
}
EDIT: use window instead of hbar and SHOW instead of visible. Witch version do you use?