I am getting the following error:

ai\690.as(4, 36): ERROR : / 'target' is not a member of 'const int&'

I probably has something to do with brackets that are placed wrong or something.. however, I can't get it fixed. When I add brackets, I get other errors (expected expression value). Who knows what this error means and how to fix it?

int ego(){

//close range:

if (target.y == 0 && abs(target.z-self.z) < 9) {

if (self.x-target.x > 0 && (self.x.target.x) < 50 && self.mp >= 180){DuA();} //D^A

EDIT: I may have figured it out, not sure... could the error mean that I have to make a true/false choice, and therefor I am using the wrong code?

ai\690.as(4, 36): ERROR : / 'target' is not a member of 'const int&'

I probably has something to do with brackets that are placed wrong or something.. however, I can't get it fixed. When I add brackets, I get other errors (expected expression value). Who knows what this error means and how to fix it?

int ego(){

//close range:

if (target.y == 0 && abs(target.z-self.z) < 9) {

if (self.x-target.x > 0 && (self.x.target.x) < 50 && self.mp >= 180){DuA();} //D^A

EDIT: I may have figured it out, not sure... could the error mean that I have to make a true/false choice, and therefor I am using the wrong code?