[FIXXED]
#7

Quote:
Originally Posted by MadeMan
pawn Код:
public LoadHouses()
{
    new arrCoords[7][64];
    new strFromFile2[256];
    new File: file = fopen("houses/house.cfg", io_read);
    if (file)
    {
        new idx;
        while (idx < sizeof(HouseInfo))
        {
            fread(file, strFromFile2);
            split(strFromFile2, arrCoords, ',');
            strmid(HouseInfo[idx][hHouseOwnerName], arrCoords[0], 0, strlen(arrCoords[0]), 255);
            HouseInfo[idx][hHouseCost] = strval(arrCoords[1]);
            HouseInfo[idx][hHouseId] = strval(arrCoords[2]);
            HouseInfo[idx][hHouseInterior] = strval(arrCoords[3]);
            HouseInfo[idx][hHousex] = floatstr(arrCoords[4]);
            HouseInfo[idx][hHousey] = floatstr(arrCoords[5]);
            HouseInfo[idx][hHousez] = floatstr(arrCoords[6]);
            CreatePickup(1273, 1, HouseInfo[idx][hHousex], HouseInfo[idx][hHousey], HouseInfo[idx][hHousez]);
            idx++;
        }
        fclose(file);
    }
    return 1;
}
That didn't work.
Reply


Messages In This Thread
[FIXXED] - by Paladin - 08.08.2009, 17:27
Re: I am tired of this - by Paladin - 08.08.2009, 18:32
Re: I am tired of this - by Backwardsman97 - 08.08.2009, 18:55
Re: I am tired of this - by Paladin - 09.08.2009, 11:56
Re: I am tired of this - by Jonny_Bravo - 09.08.2009, 22:45
Re: I am tired of this - by MadeMan - 09.08.2009, 22:52
Re: I am tired of this - by Paladin - 10.08.2009, 10:45
Re: I am tired of this - by MadeMan - 10.08.2009, 11:04
Re: I am tired of this - by Paladin - 10.08.2009, 11:13
Re: I am tired of this - by MadeMan - 10.08.2009, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)