why does the following code not work then?

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <ackphysx.h>

///////////////////////////////

typedef struct
{
	ENTITY* entity;
	char filename;
	VECTOR* position;
} simple_ent;



function Create_ent(simple_ent* ent)
{
	ent.entity = ent_create(ent.filename,ent.position,NULL);
	

}




ENTITY* box;

function main()
{
 	simple_ent cube;
	cube.filename = "cube.mdl";
	cube.position=vector(0,0,0);
 	
 	physX_open();
 	level_load("level.hmp");
 	Create_ent(cube);
 	//while(1)
 	//{
 	//box.x+=0.001;
 	//wait(1);
 	
 	//}
 	
 	
}



I get an error that the file cant be opened

Last edited by peteredlin; 12/30/10 15:37.