Hi
Your idea works with globals var but not for structures var:
No errors thrown but always is '0' using with the structure var
Code:
[/code]
....
var hero_health;
var hero_ammo;
PANEL* PanHealth;  // health counter display
PANEL* PanAmmo;  // ammo counter display
....
 
int main()
    .....
    hero = LoadEntity("player.mdl", vector(270,120,20));
    InitPlayer(hero);
    enemy1 = LoadEntity("gangst1.mdl", vector(300,-300, 25));
    enemy2 = LoadEntity("gangst1.mdl", vector(250,-300, 25));
    enemy3 = LoadEntity("gangst1.mdl", vector(250,-200, 25));

//  Always display '0'
    PanHealth = pan_create("digits = 0,450, \"Ammo:%3.0f\",digits_font,1,hero.health; flags = TRANSLUCENT,VISIBLE;",1);
    PanAmmo = pan_create("digits = 0,400, \"Health:%3.0f\",digits_font,1,hero.ammo; flags = TRANSLUCENT,VISIBLE;",1);

// var show the correct values
//  PanHealth = pan_create("digits = 0,450, \"Ammo:%3.0f\",digits_font,1,hero_health; flags = TRANSLUCENT,VISIBLE;",1);
//  PanAmmo = pan_create("digits = 0,400, \"Health:%3.0f\",digits_font,1,hero_ammo; flags = TRANSLUCENT,VISIBLE;",1);

    while(1)
    {
       ActionPlayer(hero);
       ActionEnemy(enemy1);
       ActionEnemy(enemy2);
       ActionEnemy(enemy3);
       wait(1);
    }
}
[code]

I wil stick with the global vars.
Until next time...
Thanks.