So i am trying to Draw a radar for my hack and i wanna make a call to SetRect to do this. this code compiles fine but it doesnt work in game
This is just for my rectangle.
I tried using this:
This is where i declare it to return no value in my main()
Code:
void SetRect (rect * R; int Top, Left, Bottom, Right ) ;
void FrameRect ( rect * R ) ;
void PaintRect ( rect * R ) ;
void PenSize ( int height, int width ) ;
Now to call the function i use
Code:
rect * outside ;
int top, bottom, left, right ;
top = 200;
bottom = 300;
left = 300;
right = 350;
PenSize (4, 6) ;
ForeColor (black);
SetRect ( outside, top, bottom, left, right ) ;
FrameRect (outside);
PaintRect (outside);
Now i Set a empty for loop so it will stay longer on the screen
Code:
for ( int x=1 ; x < 100000 ; x = x + 1 ) ;
Any suggestions on what i did wrong?