Actor
#5

The real problem would come to me as poor system design. You should have your own include to handle actor data.

Код:
enum ACTORINFO {
    Float:Actor_X,
    Float:Actor_Y,
    Float:Actor_Z,
    Float:Actor_FA,
    Actor_Type,
    Actor_Dialog,
}

g_ActorData[MAX_ACTORS][ACTORINFO];

CreateSpecialActor(Float:x, Float:y, Float:z, Float:fa, Float:AType, Float:ADialog)
DeleteSpecialActor(actorid)
GetSpecialActorData(actorid, &Float:x, &Float:y, &Float:z, &Float:fa, &AType, &ADialog)
UpdateSpecialActorDat(actorid, Float:x, Float:y, Float:z, Float:fa, AType, ADialog)
I always do it the same way, create enum and variable then list the functions you know you will need. In this case you know how many actors are possible so you array size needs to be the same as that. That way you can simply reference any array index by actorid.
Reply


Messages In This Thread
Actor - by KinderClans - 12.08.2018, 16:34
Re: Actor - by DAKYSKYE - 12.08.2018, 16:44
Re: Actor - by KinderClans - 12.08.2018, 17:06
Re: Actor - by KinderClans - 12.08.2018, 17:21
Re: Actor - by Pottus - 12.08.2018, 18:35
Re: Actor - by KinderClans - 12.08.2018, 18:42
Re: Actor - by Pottus - 12.08.2018, 18:48
Re: Actor - by KinderClans - 12.08.2018, 18:50
Re: Actor - by Pottus - 12.08.2018, 18:52
Re: Actor - by KinderClans - 12.08.2018, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)