16.10.2015, 01:33
Try this:
See if the lines 'Loading CP' and 'Loading Int' are being called. If they are being called, but nothing is loading correctly, show us your "LoadInteriorData" and "LoadInteriorCPData". If they are not being called, then make sure the files actually exist.
pawn Код:
LoadInteriors()
{
for(new i = 0; i < MAX_INTERIORS; i++)
{
if(fexist(InteriorFile(i)))
{
printf("Loading Int %d", i);
INI_ParseFile(InteriorFile(i), "LoadInteriorData", .bExtra = true, .extra = i);
InteriorCP[i] = CreateDynamicCP(INTInfo[i][INTCPOutX], INTInfo[i][INTCPOutY], INTInfo[i][INTCPOutZ], 1.5, 0, 0, -1, 20);
// rest of loads...
}
}
for(new i = 0; i < MAX_INTERIORCPS; i++)
{
if(fexist(InteriorCPFile(i)))
{
printf("Loading CP %d", i);
INI_ParseFile(InteriorCPFile(i), "LoadInteriorCPData", .bExtra = true, .extra = i);
CreateDynamicObject(1559, INTCPInfo[i][INTCPInX],INTCPInfo[i][INTCPInY],INTCPInfo[i][INTCPInZ], 0, 0, 0, -1 , -1, -1, 20);
// rest of loads...
}
}
return 1;
}