In the following code I have declared a char variable. The contents have been verified to contain what I want, but everytime I compare with an if staement, it returns false. I need a lesson please
//declare and set variable
char level[10] = "admin.dbo";
//the following line will successfully load the object named admin.dbo
dbLoadObject( level,1 );
//the contents of 'level' is as I think it is because the follwong command prints 'admin.dbo' to the screen
dbText(0,0,level);
//however the following line will always return false
if (level == "admin.dbo") dbText(100,140,"true");
else dbText(0,20,"false"0;
TIA
Making a simple 3D walk through of a real place. Using DarkGDK, 2008 C++, 3DWS, Sparky's Collision