04.04.2012, 20:32
I've created a few saving/loading system for various things on my game mode, but only a few of them get called. I tested this using "printf":
Here is the loading of my house system (Which loads):
And here is the door system (Which doesn't load):
I was thinking for ages trying to find out why my door system wasn't loading, it uses the same loading/saving as the house system though Y_INI, but it doesn't load, I added the "printf" and noticed that it doesn't show up, but on the house loading it does. Can anyone explain why it doesn't work? I'm confused..
Here is the loading of my house system (Which loads):
pawn Код:
for(new i = 0; i <= MAX_HOUSE; i++)
{
new gFile[35];
format(gFile, 35, House_File ,i);
INI_ParseFile(gFile, "LoadHouse", .bExtra = true, .extra = i);
ReadHouse(i);
}
pawn Код:
for(new i = 0; i <= MAX_DOORS; i++)
{
print( "Doors OnGameModeInit" );
new ddFile[128];
format(ddFile, 128, "/DynamicSystem/%d.ini" ,i);
INI_ParseFile(ddFile, "LoadDoors", .bExtra = true, .extra = i);
ReadDoors(i);
}