0

For this bit of code:

if ( dbCameraPositionX ( 1 ) == dbObjectPositionX ( 3 ) && 
			 dbCameraPositionY ( 1 ) == dbObjectPositionY ( 3 ) &&
			 dbCameraPositionZ ( 1 ) == dbObjectPositionZ ( 3 ) )// the 3 is the ID number for the object, which DarkGDK requires.
		{
			float x = dbCameraPositionX ( 1 );
			float y = dbCameraPositionY ( 1 );
			float z = dbCameraPositionZ ( 1 ); //the 1 is the ID number for the camera.

			dbObjectPositionX = x;
			dbObjectPositionY = y;
			dbObjectPositionZ = z;
		}

i get this error:

error C2659: '=' : function as left operand

I am using VC++ and have Windows XP Pro
as you can see, the function is on the right side of the '=' so i dont know what it is complaining about. And i searched the intellisense database to see if it was a function but that was a no and i also put a bracket infront of it to see if if would tell me what paramaters to put into it if it was a function but that was a no also :(

any help would be appreciated, thanks in advance! :)

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Salem
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.