Hi i downloaded a few objects from the game creater store and extracted and copied the files in my project directory and the media directory as well ,and i am using the same code exactly as i used to load the previous objects that is Clonel.x and miko.x,but they wont load,and when i debug th code it runs fine, shows my old models and the level,but when i press esc and exit it gives me this error
Quote: ""A buffer overrun has occurred in Imran.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.""
i tried different objects which i downloaded from the store but still in vain.here is the codei used to load the object.Plz Help
void LoadGun(int Mdl)
{
dbLoadObject ( "Elite.x", Mdl );
dbSetObjectSpecular(Mdl,0);
dbPointObject(Mdl,0,0,0);
dbFixObjectPivot(Mdl);
dbRotateObject(Mdl,90,180,-90);
dbScaleObject(Mdl,100,75,100);
dbPositionObject(Mdl,537,18,-482);
//dbSetShadowShadingOn(Mdl);
//dbLoopObject(Mdl,2497,2696);
dbSetObjectSpeed(Mdl,50);
//dbSetObjectCollisionOn(Mdl);
//dbSetObjectCollisionToBoxes(Mdl);
//SC_SetupObject ( Mdl, 0 ,2 );
}