I've got some problems about structs.
What I want is a struct with different type of weapons.
typedef struct
{
char* name[25];
var min_damage;
var max_damage;
var level_weapon;
} weaponlist;
So far so good. Now I want add some weapons to this.
So I put after this code.
Correct me if I wrong, but now I have 5 items (from 0 to 4) with a min_damage, max_damage and a level_weapon. So it looks like this:
item[0].min_damage
item[1].min_damage
etc.
etc.
item[3].level_weapon
item[4].level_weapon
Ok, my question is 'how to link them together'. So if I choose the first item then want to know whats his min / max damage is and his level. Example name = "Axe of 3DG", min_damage=1, max_damage=5 and level_weapon=3;
So it looks like this then
item[0].name = "Axe of 3DG";
item[0].min_damage; = 1;
item[0].max_damage; = 5;
item[0].level_weapon; = 3;
Does someone know how to link together? I want all the digits in a PANEL.
Cheers
Dave