22.08.2016, 18:38
Hello, i have an problem with actors.
Basically, when i create them, and apply animation on them they move from the position they should spawn, sometimes like 10-20ft away, cant see what the problem is, can you please check the code:
Basically, when i create them, and apply animation on them they move from the position they should spawn, sometimes like 10-20ft away, cant see what the problem is, can you please check the code:
pawn Код:
new string[128];
format(string,sizeof(string), "SPAWNED PED");
HitnaInfo[playerid][PedText] = CreateDynamic3DTextLabel(string, -1, MedicSpawn[Random][0], MedicSpawn[Random][1], MedicSpawn[Random][2] + 0.8, 5.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID);
HitnaInfo[playerid][Actor] = CreateActor(rsk, MedicSpawn[Random][0], MedicSpawn[Random][1], MedicSpawn[Random][2], MedicSpawn[Random][3]);
ApplyActorAnimation(HitnaInfo[playerid][Actor], "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
c_SetPlayerCheckpoint(playerid, MedicSpawn[Random][0], MedicSpawn[Random][1], MedicSpawn[Random][2], 3.0);
GPSOn[playerid] = 1;