Actors not spawning?
#4

Are you sure you are in the same virtual world as the actor? Try creating a debug getting the actor's virtual world and your virtual world...

Here's an example:

PHP Code:
public OnGameModeInit()
{
     
ActorOGF CreateActor(282438.7710,-1901.5355,13.5534,322.5977); //Actor OGF
     
ApplyActorAnimation(ActorOGF"DEALER""DEALER_IDLE"4.110000);
     
printf("Actor's virtual world: %d"GetActorVirtualWorld(ActorOGF); // This will get the actor's virtual world.
     
return 1;
}
CMD:myvw(playeridparams[])
{
    new 
str[20];
    
format(strsizeof(str), "Your virtual world is: %d"GetPlayerVirtualWorld(playerid)); // This will get your virtual world
    
SendClientMessage(playerid, -1str);
    return 
1;

Reply


Messages In This Thread
Actors not spawning? - by B-rian - 10.09.2018, 17:37
Re: Actors not spawning? - by Salint - 10.09.2018, 18:14
Re: Actors not spawning? - by B-rian - 10.09.2018, 18:32
Re: Actors not spawning? - by solstice_ - 10.09.2018, 19:24
Re: Actors not spawning? - by Salint - 10.09.2018, 19:44
Re: Actors not spawning? - by B-rian - 10.09.2018, 20:03
Re: Actors not spawning? - by Undef1ned - 10.09.2018, 20:16
Re: Actors not spawning? - by B-rian - 10.09.2018, 20:19
Re: Actors not spawning? - by Salint - 10.09.2018, 20:25
Re: Actors not spawning? - by B-rian - 10.09.2018, 20:35

Forum Jump:


Users browsing this thread: 2 Guest(s)