Hi, the following code is a part of my project. Actually its a game where user throws an object in parabolic path and it lands on the ground. The score is given depending on where the object lands. Now i am trying to store the variable " give_score" in an array, lets call it give_score_array[], but really struggling to do that. any help would be appreciated

if (pos_x_projectile > WALL_R + 20 + 0 && pos_x_projectile <= WALL_R +20 + 30)

give_score = give_score + scores[0];

if (pos_x_projectile > WALL_R + 20 + 30 && pos_x_projectile <= WALL_R + 20 + 60)

give_score = give_score + scores[1];

if (pos_x_projectile > WALL_R + 20 + 60 && pos_x_projectile <= WALL_R + 20 + 90)

give_score = give_score + scores[2];

if (pos_x_projectile > WALL_R + 20 + 90 && pos_x_projectile <= WALL_R + 20 + 120)

give_score = give_score + scores[3];