07.11.2015, 10:45
I believe you need to use a for loop.
PHP код:
forward SaveFaction();
public SaveFaction()
{
new idx;
for(idx < sizeof(TeamInfo); i++)
{
new INI:File = INI_Open(GangPath(idx));
INI_WriteString(File, "Name", TeamInfo[idx][TeamName]);
INI_WriteString(File, "Rank1", TeamInfo[idx][fRank1]);
INI_WriteString(File, "Rank2", TeamInfo[idx][fRank2]);
INI_WriteString(File, "Rank3", TeamInfo[idx][fRank3]);
INI_WriteString(File, "Rank4", TeamInfo[idx][fRank4]);
INI_WriteString(File, "Rank5", TeamInfo[idx][fRank5]);
INI_WriteString(File, "Rank6", TeamInfo[idx][fRank6]);
INI_Close(File);
return 1;
}
return 1;
}