brackets problem
#6

I comment weapon6 < weapon5 < weapon 4< ammo6,5,4 also
Because I don't need them here is the good of the house
pawn Код:
forward LoadProperty();
public LoadProperty()
{
    new file[64];
    for(new idx = 0; idx < sizeof(HouseInfo); idx++)
    {
        format(file, sizeof(file),"LARP/Properties/%d.ini", idx)
        if(dini_Exists(file))
        {
            HouseInfo[idx][hEntrancex] = dini_Float(file,"Entrance_X");
            HouseInfo[idx][hEntrancey] = dini_Float(file,"Entrance_Y");
            HouseInfo[idx][hEntrancez] = dini_Float(file,"Entrance_Z");
            HouseInfo[idx][hExitx] = dini_Float(file,"Exit_X");
            HouseInfo[idx][hExity] = dini_Float(file,"Exit_Y");
            HouseInfo[idx][hExitz] = dini_Float(file,"Exit_Z");
            HouseInfo[idx][hHealthx] = dini_Int(file,"Health_X");
            HouseInfo[idx][hHealthy] = dini_Int(file,"Health_Y");
            HouseInfo[idx][hHealthz] = dini_Int(file,"Health_Z");
            HouseInfo[idx][hArmourx] = dini_Int(file,"Armour_X");
            HouseInfo[idx][hArmoury] = dini_Int(file,"Armour_Y");
            HouseInfo[idx][hArmourz] = dini_Int(file,"Armour_Z");
            strmid(HouseInfo[idx][hOwner], dini_Get(file,"Owner"), 0, strlen(dini_Get(file,"Owner")), 255);
            strmid(HouseInfo[idx][hDiscription], dini_Get(file,"Description"), 0, strlen(dini_Get(file,"Description")), 255);
            HouseInfo[idx][hValue] = dini_Int(file,"Price");
            HouseInfo[idx][hHel] = dini_Int(file,"Health");
            HouseInfo[idx][hArm] = dini_Int(file,"Armour");
            HouseInfo[idx][hInt] = dini_Int(file,"Interior");
            HouseInfo[idx][hLock] = dini_Int(file,"Locked");
            HouseInfo[idx][hOwned] = dini_Int(file,"Owned");
            HouseInfo[idx][hRooms] = dini_Int(file,"Rooms");
            HouseInfo[idx][hRent] = dini_Int(file,"Rentable");
            HouseInfo[idx][hRentabil] = dini_Int(file,"RentPrice");
            HouseInfo[idx][hTakings] = dini_Int(file,"Takings");
            HouseInfo[idx][hSetted] = dini_Int(file,"Setted");
            HouseInfo[idx][hLevel] = dini_Int(file,"LevelNeeded");
            HouseInfo[idx][hWorld] = dini_Int(file,"World");
            HouseInfo[idx][hDrugs] = dini_Int(file,"Drugs");
            HouseInfo[idx][hMaterials] = dini_Int(file,"Materials");
            HouseInfo[idx][hWeapon1] = dini_Int(file,"Weapon1");
            HouseInfo[idx][hAmmo1] = dini_Int(file,"Ammo1");
            HouseInfo[idx][hWeapon2] = dini_Int(file,"Weapon2");
            HouseInfo[idx][hAmmo2] = dini_Int(file,"Ammo2");
            HouseInfo[idx][hWeapon3] = dini_Int(file,"Weapon3");
            HouseInfo[idx][hAmmo3] = dini_Int(file,"Ammo3");
            HouseInfo[idx][hDate] = dini_Int(file,"Date");
            strmid(HouseInfo[idx][hMessage], dini_Get(file,"Message"), 0, strlen(dini_Get(file,"Message")), 255);
        }
    }
    print("[SCRIPT]: Loaded Houses");
    return 1;
}
enum houses // MYSQL HOUSES
{
    hDBID,
    Float:hEntrancex,
    Float:hEntrancey,
    Float:hEntrancez,
    Float:hExitx,
    Float:hExity,
    Float:hExitz,
    hHealthx,
    hHealthy,
    hHealthz,
    hArmourx,
    hArmoury,
    hArmourz,
    hDate,
    hRooms,
    hOwner[MAX_PLAYER_NAME],
    hDiscription[64],
    hValue,
    hHel,
    hArm,
    hInt,
    hLock,
    hOwned,
    hRent,
    hRentabil,
    hTakings,
    hLevel,
    hWorld,
    hSetted,
    hMaterials,
    hWeapon1,
    hAmmo1,
    hWeapon2,
    hAmmo2,
    hWeapon3,
    hAmmo3,
    hMessage[64],
    hExVW,
    hExINT,
    hDrugs[8]
};
new HouseInfo[MAX_HOUSES][houses];
Reply


Messages In This Thread
brackets problem - by Barnwell - 25.07.2017, 00:52
Re: brackets problem - by Barnwell - 25.07.2017, 01:29
Re: brackets problem - by Kane - 25.07.2017, 01:30
Re: brackets problem - by Barnwell - 25.07.2017, 01:40
Re: brackets problem - by Kane - 25.07.2017, 01:49
Re: brackets problem - by Barnwell - 25.07.2017, 01:52
Re: brackets problem - by Kane - 25.07.2017, 01:53
Re: brackets problem - by Barnwell - 25.07.2017, 01:55
Re: brackets problem - by Kane - 25.07.2017, 02:04
Re: brackets problem - by Barnwell - 25.07.2017, 02:18

Forum Jump:


Users browsing this thread: 4 Guest(s)