Pickups doesn't save
#7

PHP код:
LoadDutyMenus()
{
    for(new 
1MAX_DUTYMENUSi++)
    {
        new 
command[17];
        new 
file[100];
        new var[
32];
        
format(filesizeof(file), "DutyMenus/%d.ini"i);
        if(
fexist(file) && INI_Open(file))
        {
            
INI_ReadString(command"DutyMenuCommand");
            
DutyMenuStatistics[i][DutyMenuX] = INI_ReadFloat("DutyMenuX");
            
DutyMenuStatistics[i][DutyMenuY] = INI_ReadFloat("DutyMenuY");
            
DutyMenuStatistics[i][DutyMenuZ] = INI_ReadFloat("DutyMenuZ");
            
DutyMenuStatistics[i][DutyMenuFaction] = INI_ReadInt("DutyMenuFaction");
            for(new 
047g++)
            {
                
format(var, sizeof(var), "DutyMenuGun%d"g);
                
DutyMenuStatistics[i][DutyMenuGuns][g] = INI_ReadInt(var);
                
format(var, sizeof(var), "DutyMenuGunRank%d"g);
                
DutyMenuStatistics[i][DutyMenuGunRank][g] = INI_ReadInt(var);
            }
            
DutyMenuStatistics[i][DutyMenuMask] = INI_ReadInt("DutyMenuMask");
            
DutyMenuStatistics[i][DutyMenuMaskRank] = INI_ReadInt("DutyMenuMaskRank");
            
DutyMenuStatistics[i][DutyMenuVirtual] = INI_ReadInt("DutyMenuVirtual");
            
DutyMenuStatistics[i][DutyMenuPickup] = CreateDynamicPickup(123923DutyMenuStatistics[i][DutyMenuX], DutyMenuStatistics[i][DutyMenuY], DutyMenuStatistics[i][DutyMenuZ], DutyMenuStatistics[i][DutyMenuVirtual]);
            
strmid(DutyMenuStatistics[i][DutyMenuCommand], command0strlen(command), 255);
            
DutyMenuIDTaken[i] = 1;
            
INI_Close();
        }
    }
    return 
1;

Reply


Messages In This Thread
Pickups doesn't save - by MCZOFT - 24.10.2014, 11:25
Re: Pickups doesn't save - by Rudy_ - 24.10.2014, 11:33
Re : Pickups doesn't save - by MCZOFT - 24.10.2014, 11:35
Re: Pickups doesn't save - by Rudy_ - 24.10.2014, 11:38
Re : Pickups doesn't save - by MCZOFT - 24.10.2014, 11:41
Re: Pickups doesn't save - by Rudy_ - 24.10.2014, 11:46
Re : Pickups doesn't save - by MCZOFT - 24.10.2014, 11:54

Forum Jump:


Users browsing this thread: 2 Guest(s)