Most likely, you don't have a function defined: remove the curly brackets around your data definitions:
{ <<<--- Remove this
const int MAX_INDEX_WEAPON = 1;
const int MAX_INDEX_RECOIL = 29;
int recoilTableY[MAX_INDEX_WEAPON][MAX_INDEX_RECOIL] = {
{ 40, 48, 48, 48, 33, 33, 28, 24, 16, 13, 18, 22, 24, 29, 33, 33, 33, 29, 22, 20, 17, 17, 17, 17, 20, 27, 27, 27, 26 }
};
int recoilTableX[MAX_INDEX_WEAPON][MAX_INDEX_RECOIL] = {
{ -36, 5, -59, -49, 3, 20, 25, 45, 43, 32, 82, 8, 43, -32, -25, -40, -35, -32, -43 , -42, -42, -55, -25, 15, 20, 35, 50, 62, 40 }
};
} <<<--- Remove this
And ensure that the rest of the code is inside a function:
void myFunction()
{
bool bRecoilscript = true;
if (bRecoilscript)
{
intiCount = 0, fireRate = 134; while (GetAsyncKeyState(1) < 0)
{
if (iCount < AssaultRifle::MAX_INDEX_RECOIL)
{
mouse_event(1u, AssaultRifle::recoilTableX[0][iCount], AssaultRifle::recoilTableY[0][iCount], 0, 3u);
if (iCount < AK::MAX_INDEX_RECOIL) iCount++;
}
Sleep(fireRate);
}
}
}