Loading Problem
#1

Hello, I created actors system, But they are not getting loaded.
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;
}
Reply


Messages In This Thread
Loading Problem - by aCloudy - 07.05.2015, 07:13
Re: Loading Problem - by Antoniohl - 07.05.2015, 07:25
Re: Loading Problem - by aCloudy - 07.05.2015, 07:39
Re: Loading Problem - by Antoniohl - 07.05.2015, 07:44
Re: Loading Problem - by aCloudy - 07.05.2015, 08:12
Re: Loading Problem - by aCloudy - 07.05.2015, 08:20
Re: Loading Problem - by Antoniohl - 07.05.2015, 08:20
Re: Loading Problem - by aCloudy - 07.05.2015, 08:24
Re: Loading Problem - by Antoniohl - 07.05.2015, 08:29
Re: Loading Problem - by aCloudy - 07.05.2015, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)