Code:
bool MP(int tX,int tY,int upixels,int dpixels,int lpixels,int rpixels)
{if(tX+16+rpixels<=mX||tX-lpixels>=mX||tY+16+dpixels<=mY||tY-upixels>=mY){return false;}
if(tX+16+rpixels>mX&&tX-lpixels<mX&&tY+16+dpixels>mY&&tY-upixels<mY){return true;}}
void PB() //Phone Buttons
{if(MP(100,100,1,0,1,0)==true){N[0]+=1;return;}if(MP(116,100,1,0,0,0)==true){N[0]+=2;return;}
if(MP(132,100,1,0,0,1)==true){N[0]+=3;return;}if(MP(100,116,0,0,1,0)==true){N[0]+=4;return;}
if(MP(116,116,0,0,0,0)==true){N[0]+=5;return;}if(MP(132,116,0,0,0,1)==true){N[0]+=6;return;}
if(MP(100,132,0,1,1,0)==true){N[0]+=7;return;}if(MP(116,132,0,0,0,0)==true){N[0]+=8;return;}
if(MP(132,132,0,1,0,1)==true){N[0]+=9;return;}
}
Is the function that it calls, I see no errors with this scripting.. It just won't work on my game. See how the N[0] gets added the number the mouse is clicked on with the MP function over the area of the button 0-9.. This all worked just fine before I converted it to an array, and I made no mistakes in the conversion.. I can't see why it won't work other than I might've messed up my ZC by continuing the ZC game with new scripts or something..