Looping Problem (Loading Interiors)
#1

What's wrong in these loops? it's just loads everything in the first loop and doesn't load anything for the second one..
the second loop loads successfully if you put it in the first but it will not load the first loop which is the second one now.. !!

PHP код:
stock LoadInteriors()
{
    for(new 
0<= MAX_INTERIORSi++)
    {
        if(
fexist(InteriorFile(i)))
        {
            
INI_ParseFile(InteriorFile(i), "LoadInteriorData"falsetrueitruefalse);
            
InteriorCP[i] = CreateDynamicCP(INTInfo[i][INTCPOutX], INTInfo[i][INTCPOutY], INTInfo[i][INTCPOutZ], 1.500, -120);
            
            
// rest of loads...
        
}
    }
    for(new 
0<= MAX_INTERIORCPSi++)
    {
        if(
fexist(InteriorCPFile(i)))
        {
            
INI_ParseFile(InteriorCPFile(i), "LoadInteriorCPData"falsetrueitruefalse);
            
CreateDynamicObject(1559INTCPInfo[i][INTCPInX],INTCPInfo[i][INTCPInY],INTCPInfo[i][INTCPInZ], 0,0,0,-,-1, -120);
              
              
// rest of loads...
        
}
    }
    return 
1;
}
public 
OnGameModeInit()
{
    
DisableInteriorEnterExits();
    
LoadInteriors();
    return 
1;

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)