Should be similar:
NumOfIndustry = 200; // or the actual number (max 256)
for(w=0;w<NumOfIndustry;w++) // note that the loop starts from 0, not 1
{
if(IndustryID() == w)
{
Comp = "~"+CategoryGetName(categoryIndustry,w);
AddToComposite(C,Comp,"C");
AddToComposite(1,Comp,"I");
}
}
Buy=0;
|