Topic: ... was not declared in this scope
I'm trying to create a little mod. (which involves upgrading Weapons):
First of all:
character.h http://pastebin.com/te5cPUHN
&
character.cpp http://pastebin.com/R9ihFvcY
____
I want to create an array for the reload timers of every weapon.
So, to make it short:
//character.h:
int m_aReloadtimer[NUM_WEAPONS];
//character.cpp:
switch(m_ActiveWeapon)
{
case WEAPON_HAMMER:
{
if(m_aReloadTimer[0] != 0)
return;
//Error:
m_aReloadTimer was not declared in this scope