Looping Problem (Loading Interiors)
#4

Try this:
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;
}
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.
Reply


Messages In This Thread
Looping Problem (Loading Interiors) - by Juvanii - 15.10.2015, 11:45
Re: Looping Problem (Loading Interiors) - by DaniceMcHarley - 15.10.2015, 12:27
Re: Looping Problem (Loading Interiors) - by Juvanii - 15.10.2015, 23:15
Re: Looping Problem (Loading Interiors) - by Threshold - 16.10.2015, 01:33
Re: Looping Problem (Loading Interiors) - by Juvanii - 17.10.2015, 11:54

Forum Jump:


Users browsing this thread: 1 Guest(s)