Hallo Brotfische,
Wie schon oben erwähnt bekomme ich einen Fehler Code beim erstellen von DynamicActors.
Fehlercode:
OnGameModeInit:
CreateDynamicActor:
C
stock CreateDynamicActor(modelid, Float:x, Float:y, Float:z, Float:angle, worldid = -1, interiorid = -1, const actorname[] = "UNKNOWN_ACTOR_NAME")
{
for (new i = 0; i < MAX_DYNAMIC_ACTORS; i ++)
{
if (!s_DynamicActors[i][e_iSlotUsed])
{
s_DynamicActors[i][e_iSlotUsed] = 1;
s_DynamicActors[i][e_iActorModel] = modelid;
s_DynamicActors[i][e_fActorX] = x;
s_DynamicActors[i][e_fActorY] = y;
s_DynamicActors[i][e_fActorZ] = z;
s_DynamicActors[i][e_fActorA] = angle;
s_DynamicActors[i][e_iActorVirtual] = worldid;
s_DynamicActors[i][e_iActorInterior] = interiorid;
s_DynamicActors[i][e_iActorID] = INVALID_ACTOR_ID;
s_DynamicActors[i][e_iActorName] = actorname;
s_DynamicActors[i][e_iActorTimer] = SetTimerEx("OnActorStreamUpdate", ACTOR_STREAM_TICK_RATE, true, "i", i);
return i;
}
}
return INVALID_ACTOR_ID;
}
Alles anzeigen
Ich hoffe es kann mir jemand helfen
MfG