07.05.2015, 07:13
Hello, I created actors system, But they are not getting loaded.
Can someone tell me what is the problem ?
Can someone tell me what is the problem ?
Code:
forward LoadActor_data(name[],value[]); public LoadActor_data(name[],value[]) { new ActorInfo[2],Float:Pos[4]; INI_Int("Skin",ActorInfo[0]); INI_Float("PosX",Pos[0]); INI_Float("PosY",Pos[1]); INI_Float("PosZ",Pos[2]); INI_Float("Angle",Pos[3]); INI_Int("VirtualWorld",ActorInfo[1]); new Actor = CreateActor(ActorInfo[0], Pos[0], Pos[1], Pos[2], Pos[3]); SetActorVirtualWorld(Actor, ActorInfo[1]); return 1; } OnGameModeInit() { for(new actorid=0; actorid < MAX_ACTORS; actorid++) { INI_ParseFile(ActorPath(actorid), "LoadActor_%s"); } return 1; }