06.05.2015, 18:24
Hello, I found this function "INI_ParseFile" in my stock function, And I don't know how important is it.
INI_ParseFile is in a stock to load actors "y_ini", And the actors files ".ini" are in the "Actors" folder.
Can someone tell me what to do with INI_ParseFile and how to fix it ?
I wrote "load_server_actors();" under OnGameModeInit and they didn't get loaded.
This is the code:
EDITION: The actors are getting created at position: X: 0, Y:0, Z:0 with skin id 0 (CJ), But in the scriptfiles I see the positions: -2151 and skin ID 230 and everything looks well.
INI_ParseFile is in a stock to load actors "y_ini", And the actors files ".ini" are in the "Actors" folder.
Can someone tell me what to do with INI_ParseFile and how to fix it ?
I wrote "load_server_actors();" under OnGameModeInit and they didn't get loaded.
This is the code:
Код:
stock load_server_actors() { for(new i =1; i < MAX_ACTORS; i++) { if(fexist(acPath(i))) { INI_ParseFile(acPath(i), "LoadActors_%s", .bExtra = true, .extra = i); actObject[i] = CreateActor(actData[i][Model], actData[i][acPosX], actData[i][acPosY], actData[i][acPosZ], actData[i][acPosFA]); SetActorVirtualWorld(actObject[i], actData[i][acWorld]); } } return 1; }