Why wont my gun show up?

#include "DarkGDK.h"

void DarkGDK ( void )
{
	dbSyncOn   ( );
	dbSyncRate ( 60 );

	SetCurrentDirectory ( "resources" );

	dbLoadObject		( "skybox2.x", 1 );
	dbSetObjectLight	( 1, 0 );
	dbSetObjectTexture	( 1, 3, 2 );
	dbScaleObject		( 1, 5000, 5000, 5000 );

	dbLoadObject		( "mp5.x", 2 );
	dbPositionObject	( 2, 434, 42, -517 );
	dbScaleObject		( 2, 500, 500, 500 );

	dbPositionCamera	( 434, 42, -517 );

	float fCameraAngleX = 0.0f;
	float fCameraAngleY = 0.0f;

	while ( LoopGDK ( ) )
	{
		dbHideMouse ( );

		dbControlCameraUsingArrowKeys ( 0, 5.0f, 0.3f );

		fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f );
		fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f );

		dbXRotateCamera ( fCameraAngleX );
		dbYRotateCamera ( fCameraAngleY );

		dbSync ( );
	}

	return;
}

Why bother posting if you mark them solved two minutes latter?

Because i posted it then figured out what was wrong

Doesn't that show, that perhaps you should look at your problem till you're certain you can't solve it, before posting?

yes i figured that :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.