House System read plz
#10

Try these:

pawn Код:
public LoadHouse(houseid)
{
    new file[24];
    format(file,24,"\\Houses\\%d.ini",houseid);

    HouseInfo[houseid][hHouse] = dini_Int(file,"Owner");
    HouseInfo[houseid][hOwned] = dini_Int(file,"Owned");
    HouseInfo[houseid][hOwner] = dini_Int(file,"Owner");
    HouseInfo[houseid][hPickupX] = dini_Int(file,"PickupX");
    HouseInfo[houseid][hPickupY] = dini_Int(file,"PickupY");
    HouseInfo[houseid][hPickupZ] = dini_Int(file,"PickupZ");
    HouseInfo[houseid][hHouseX] = dini_Int(file,"HouseX");
    HouseInfo[houseid][hHouseY] = dini_Int(file,"HouseY");
    HouseInfo[houseid][hHouseZ] = dini_Int(file,"HouseZ");
    HouseInfo[houseid][hInterior] = dini_Int(file,"Interior");
    HouseInfo[houseid][hVW] = dini_Int(file,"VW");
    HouseInfo[houseid][hLvL] = dini_Int(file,"LvL");
    HouseInfo[houseid][hStage] = dini_Int(file,"Stage");
    HouseInfo[houseid][hSell] = dini_Int(file,"Sell");
    HouseInfo[houseid][hSellable] = dini_Int(file,"Sellable");
    HouseInfo[houseid][hRentFee] = dini_Int(file,"RentFee");
    HouseInfo[houseid][hOpen] = dini_Int(file,"Open");
    printf("%s: Owner:%s Price:%d RentFee:%d",HouseInfo[houseid][hHouse],HouseInfo[houseid][hOwned],HouseInfo[houseid][hSell],HouseInfo[houseid][hRentFee]);
    return 1;
}
under OnGameModeInit

pawn Код:
for(new i = 0; i < sizeof(HouseInfo); i++)
{
    LoadHouse(i);
}
Reply


Messages In This Thread
House System read plz - by Naruto4 - 16.01.2010, 15:03
Re: House System read plz - by MadeMan - 16.01.2010, 15:26
Re: House System read plz - by Naruto4 - 16.01.2010, 18:50
Re: House System read plz - by MadeMan - 16.01.2010, 18:54
Re: House System read plz - by Naruto4 - 17.01.2010, 08:38
Re: House System read plz - by MadeMan - 17.01.2010, 09:39
Re: House System read plz - by Naruto4 - 17.01.2010, 12:06
Re: House System read plz - by MadeMan - 17.01.2010, 12:08
Re: House System read plz - by Naruto4 - 17.01.2010, 12:50
Re: House System read plz - by MadeMan - 17.01.2010, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)