House Making.
#4

I got it working, But I have this code.

Would this be correct as it is not loading?
pawn Код:
forward LoadHouse();
public LoadHouse()
{
    new file[128], h;
    for(new i = 0; i<MAX_HOUSES; i++)
    {
        format(file, sizeof(file), "Houses/%d.ini", i);
        if(!dini_Exists(file))
        {
            h = i;
        }
    }
    format(file, sizeof(file), "Houses/%d.ini", h);
    if(!dini_Exists(file))
    {
        dini_Float(file, "EnterX");
        dini_Float(file, "EnterY");
        dini_Float(file, "EnterZ");
        dini_Int(file, "Pickup");
        dini_Float(file, "ExitX");
        dini_Float(file, "ExitY");
        dini_Float(file, "ExitZ");
        dini_Int(file, "Interior");
    }
    CreatePickup(HouseInfo[h][hPickup], 1, HouseInfo[h][hEnterX], HouseInfo[h][hEnterY], HouseInfo[h][hEnterZ], 0);
    return 1;
}
Reply


Messages In This Thread
House Making. - by Luis- - 22.01.2011, 23:45
Re: House Making. - by Elmerz_com - 23.01.2011, 00:53
Re: House Making. - by Not available - 23.01.2011, 01:07
Re: House Making. - by Luis- - 23.01.2011, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)