05.11.2017, 08:01
Hello!
When you want to do this, then like this:
Because you use 0-6 (0,1,2,3,4,5,6 = 7) but you defined it with 6. I hope you understand what I mean. ^^
When you want to do this, then like this:
PHP код:
#include <foreach>
new ActorCJ[7];
public OnGameModeInit()
{
ActorCJ[0] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ[1] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ[2] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ[3] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ[4] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ[5] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ[6] = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
for(new i = 0; i < 7; i ++) {
ApplyActorAnimation(i, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0, 1);
}
return 1;
}