House system only loading 1 house.
#3

pawn Код:
{
    for(new i = 1; i < sizeof(HouseInfo); i++)
    {
        format(file, sizeof(file), "RRP/houses/%d.ini", i);
        if(fexist(file))
        {
            HouseInfo[i][X] = dini_Int(file, "X");
            HouseInfo[i][Y] = dini_Int(file, "Y");
            HouseInfo[i][Z] = dini_Int(file, "Z");
            HouseInfo[i][Int] = dini_Int(file, "Int");
            HouseInfo[i][Vw] = dini_Int(file, "Vw");
            HouseInfo[i][Owner] = dini_Int(file, "Owner");
            HouseInfo[i][Lock] = dini_Int(file, "Lock");
            HouseInfo[i][Price] = dini_Int(file, "Price");
        }
    }
    print("[RRP]: Houses Loadeds");
    return 1;
Remove the return 1;


do NOT use return INSIDE the looping!
Reply


Messages In This Thread
House system only loading 1 house. - by ricardo178 - 17.02.2012, 21:37
Re: House system only loading 1 house. - by TheGamer! - 17.02.2012, 21:42
Re: House system only loading 1 house. - by milanosie - 17.02.2012, 21:42
Re : House system only loading 1 house. - by ricardo178 - 17.02.2012, 21:55
Re : House system only loading 1 house. - by ricardo178 - 18.02.2012, 11:10
Re: House system only loading 1 house. - by DaRkM - 18.02.2012, 19:53
Re : Re: House system only loading 1 house. - by ricardo178 - 18.02.2012, 21:16
Re : House system only loading 1 house. - by ricardo178 - 18.02.2012, 21:28
Re: House system only loading 1 house. - by DaRkM - 19.02.2012, 06:37

Forum Jump:


Users browsing this thread: 6 Guest(s)