Make sure you have a working CfgModels section in your config.
should be something like:
class CfgModels
{
class Default{};
class Vehicle: Default{};
class Car: Vehicle {};
class modelname: Car {};
};
modelname is the name of your model, without .p3d extension.