Saving gangs to different files, code only saving one
#5

Try again

PHP код:
forward SaveFaction();
public 
SaveFaction()
{
        new 
idx;
        for(
idx sizeof(TeamInfo); idx++)
        {
                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;

Reply


Messages In This Thread
Saving gangs to different files, code only saving one - by MrTinder - 07.11.2015, 10:05
Re: Saving gangs to different files, code only saving one - by Sellize - 07.11.2015, 10:45
Re: Saving gangs to different files, code only saving one - by MrTinder - 07.11.2015, 10:49
Re: Saving gangs to different files, code only saving one - by MrTinder - 07.11.2015, 11:57
Re: Saving gangs to different files, code only saving one - by Sellize - 07.11.2015, 13:34

Forum Jump:


Users browsing this thread: 1 Guest(s)