Help - Clans not loading.
#1

Hey, I have a problem only the first clan loads and the others don't. What am I doing wrong here?
PHP код:
stock LoadClans()
{
   new 
string[80], file[64];
   for(new 
c; c < MAX_CLANS; c ++)
   {
       
format(file, sizeof(file), "Clans/%d.ini", c);
       if(
fexist(file))
       {
           
INI_ParseFile(CrewPath(c), "LoadClanData", false, true, c, true, false);
           
format(string, sizeof(string), " Loaded Clan: (%d) %s", c, CrewInfo[c][cName]);
           print(string);
           
c ++;
           
printf("\n %d clans loaded!", c);
        }
    }
   return 
true;
} 
Reply
#2

PHP код:
stock LoadClans()
{
   new 
string[80], file[64], totalclans;
   for(new 
c; c < MAX_CLANS; c ++)
   {
       
format(file, sizeof(file), "Clans/%d.ini", c);
       if(
fexist(file))
       {
           
INI_ParseFile(CrewPath(c), "LoadClanData", false, true, c, true, false);
           
printf("Loaded Clan: (%i) %s", c, CrewInfo[c][cName]);
           
totalclans++;
       }
   }
   
printf("\n %i clans loaded!", totalclans);
   return 
1;
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)