19.01.2016, 10:24
Quote:
I might've missed it, but where would you put the LoadHouse stock so that the houses load? Also, I'm using y_ini instead of dini and replaced most of the saving/loading functions, but I'm not sure if that changes how to load it.
|
pawn Code:
public OnGameModeInit()
{
for (new i = 0; i < 500; i++) //That would be max. 500 houses
{
if (!fexist(HOUSEFILE)) continue; //If the house was never saved yet ('House file' doesn't exist), continue to next loop
LoadHouse(i); //Load the house..
}
}