Please Help Me (Beginner Lesson 12)

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
noah1000000
Posts: 1
Joined: July 10th, 2012, 6:58 pm

Please Help Me (Beginner Lesson 12)

Post by noah1000000 » July 10th, 2012, 7:16 pm

I ran in to a problem on the beginner lesson 12 lesson. The when I build it it says "Expression y >= 0" I tried to debug and solve the problem but I don't know what's causing it.
Attachments
Chili DirectX Framework Tic Tac Toe.zip
(8.52 MiB) Downloaded 154 times

simplicity
Posts: 18
Joined: July 10th, 2012, 6:55 pm

Re: Please Help Me (Beginner Lesson 12)

Post by simplicity » July 10th, 2012, 8:26 pm

noah1000000 wrote:I ran in to a problem on the beginner lesson 12 lesson. The when I build it it says "Expression y >= 0" I tried to debug and solve the problem but I don't know what's causing it.
gfx.DrawLine(x+8,y+8,x+48,y+8,0,255,0);
gfx.DrawLine(x+8,y+9,x+8,y+48,0,255,0);
gfx.DrawLine(x+91,y+91,x+51,y+91,0,255,0);
gfx.DrawLine(x+91,y+90,x+91,y+51,0,255,0);

Paste this into your Game::DrawPlacer(also delete the stuff you written in it, that's causing the error). Weird name choice as he uses DrawCursor. But, yeah if you do that the code works fine. Through, you can only draw X's as you haven't done the end turn function, which is about 10 minutes away from the point you are at.

If you carry on you might get an error when writing !=. A fix is to rewrite it in the form !( == ). So he uses state != true, you might get an error so it's better to write !(state == true).

Post Reply