i was writing a code for the basics of a first person shooter when I got this error message
Project : error PRJ0003 : Error spawning 'cmd.exe'.
I don't know how to fix it
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbSetCameraRange ( 1.0f, 3000000.0f );
dbLoadImage ( "colorme.jpg", 1 );
dbLoadImage ( "detailme.jpg", 2 );
dbSetupTerrain ( );
dbMakeObjectTerrain ( 1 );
dbSetTerrainHeightMap ( 1, "imageme.bmp" );
dbSetTerrainScale ( 1, 3.0f, 0.6f, 3.0f );
dbSetTerrainLight ( 1, 1.0f, -0.25f, 0.0f, 1.0f, 1.0f, 0.78f, 0.5f );
dbSetTerrainTexture ( 1, 1, 2 );
dbBuildTerrain ( 1 );
dbPositionCamera ( 0, 0, 0 );
dbSetObjectTexture ( 2, 3, 1 );
while ( LoopGDK ( ) )
{
dbControlCameraUsingArrowKeys ( 0, 1.0f, 1.0f );
// rotate camera
if ( dbMouseClick ( ) == 1 ){
dbMakeObjectSphere ( 4, 2 );
dbPositionObject ( 4, dbCameraPositionX ( ), dbCameraPositionY ( ), dbCameraPositionZ ( ) );
dbRotateObject ( 4, dbCameraAngleX ( ), dbCameraAngleY ( ), dbCameraAngleZ ( ) );}
float fHeight = dbGetTerrainGroundHeight ( 1, dbCameraPositionX ( ), dbCameraPositionZ ( ) );
dbPositionCamera ( dbCameraPositionX ( ), fHeight + 10.0f, dbCameraPositionZ ( ) );
dbMoveObject ( 4, 10 );
dbUpdateTerrain ( );
dbSync ( );
}
}
I really need some help