
-----------------------------------
unholymight
Thu Nov 15, 2007 7:45 pm

wow i cant find this mistake in these 6 lines of code
-----------------------------------
microsoft visual studio 2005

	// Create Our OpenGL Window
	if (!CreateGLWindow("Yue Dong's Program v0.05",640,480,16,fullscreen))
	{
		return 0;									// Quit If Window Was Not Created
	}

	//keys[VK_F1] = TRUE;

	/*Set up this player*/

	plane player(0,0);

	plane.set_angle(0.0);						xxx\game.cpp(530) : error C2143: syntax error : missing ';' before '.'
1>xxx\game.cpp(530) : error C2143: syntax error : missing ';' before '.'
1>xxx\game.cpp(531) : error C2143: syntax error : missing ';' before '.'
1>xxx\game.cpp(531) : error C2143: syntax error : missing ';' before '.'

they refer to the lines starting inclusively at plane.set_angle(0.0)


void plane::set_angle(float value)
{
	angle = value;
}

void plane::set_turnspeed(float value)
{
	turnspeed = value;
}

void plane::set_planespeed(float value)
{
	planespeed = value;
}


thats what they call to, if you need more information i'll provide it, help me get down these bugs damn it

-----------------------------------
Saad
Thu Nov 15, 2007 7:58 pm

RE:wow i cant find this mistake in these 6 lines of code
-----------------------------------
Plane is a class, your declaring player to be an instance of player, but you use plane which should be player

-----------------------------------
unholymight
Thu Nov 15, 2007 8:04 pm

Re: RE:wow i cant find this mistake in these 6 lines of code
-----------------------------------
Plane is a class, your declaring player to be an instance of player, but you use plane which should be player

thanks a million, couldn't find that one for the life of me.  :vi:
