23.01.2014, 13:07
I have an enum
How do I set an element in the array?
I tried this
PlayerWeapons[i][Weapons]{1} = 0;
^^Gives an error
^^ looks crap but how do I set a value?
Код:
enum PlayerWeapons_t { ..... Weapons[MAX_PLAYER_WEAPONS char] }
Код:
static PlayerWeapons[MAX_PLAYERS][PlayerWeapons_t];
I tried this
PlayerWeapons[i][Weapons]{1} = 0;
^^Gives an error
^^ looks crap but how do I set a value?