//basic weapons data
typedef struct
{
char WEAPON_name;
int WEAPON_weigh;
int WEAPON_size;

}WEAPONS;

//fire weapons
typedef struct
{
WEAPONS weapons_str ;
int WEAPON_munition;
int WEAPON_range;

}FIRE_WEAPONS;

FIRE_WEAPONS OBJ_pistol = { WEAPON_munition = 8; WEAPON_range = 800;}


all correct for lite-c, but I not can use the data of the firs structure using the OBJ_pistol.

lite-c give error

example:

OBJ_pistol.weapons_str.WEAPON_weigh = 10;



Last edited by er_willy; 02/23/07 13:08.