23.01.2011, 15:40
I got it working, But I have this code.
Would this be correct as it is not loading?
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;
}