How can I get the skills of an entity to show up in a panel. For example ...
#define Name skill50 ***This creates a problem ***
#define Health skill51
ENTITY* Person = NULL;
function main()
{
you = ent_create("person.mdl",target.x,Human_Act);
}
action Human_Act()
{
***** this next line causes an error "can't convert array to fixed" why is this. *******
my.name = "Paul";
my.heath = 100;
while(1)
{
*** some actions ***
}
}
PANEL* info =
{
pos_x = 0; pos_y = 100;
bmap = ppl_info;
digits = 5,15,"Name: %s",*,1,mouse_ent.name;
digits = 5,25,"Health: %s",*,1,mouse_ent.health;
}
this isn't the actual code I am playing around with I just typed it in quickly so you get the idea. As you can see I'm trying to get a panel to display information about a entity that has been "clicked" mouse_ent from what I understand is supposed to hold all information on an entity that has been clicked, then why is the panel info always 0 or null in the case of the name ... I can't even give name a value because of the error. This seems that it should be this hard to figure out, can someone point me in the right direction.