I'm trying to create an array of strings, which is inside of a structure, and I'm having a bit trouble on the syntax part. This is my code:
typedef struct data_players {
int id;
int hp; //start = 20, Max = 30
int wght; // Max = 20
int atk;
int def;
char *inventory[20] = {
inventory[0] = "knife";
inventory[1] = "healthpack";
}
} jogador;