Why dosnt my NPC Dance?
#1

This is the onplayerspawn Code:

Код:
	if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "Dancer", true)) //Checking if the NPC's name is MyFirstNPC
    {
      ApplyAnimation(playerid,"DANCING","dnce_M_a",10.0,1,1,1,1,1);
    }
    return 1;
  }
He just stands there
Reply
#2

http://forum.sa-mp.com/index.php?topic=119892.0
Reply
#3

Quote:

RC6-2 Server Only
- Fixed onfoot NPCs can't read their recording files causing them to leave the server.
(You can just replace samp-npc/.exe if you have the 6-1 server)

download the rc6-2 server
Reply
#4

He obviously has his NPC connected.

http://forum.sa-mp.com/index.php?topic=123071.0
Reply
#5

Quote:
Originally Posted by Karlip
He obviously has his NPC connected.

http://forum.sa-mp.com/index.php?topic=123071.0
He edited the topic. It wasn't connecting before he edited it.
Reply
#6

yea i fixed it lolz ty and how would i make it dance now ?
Reply
#7

Maybe you haven't pre-loaded that animation library, so you need to apply it two times for the first time. Btw, isn't better to use special action dancing than dancing animation?
Reply
#8

Quote:
Originally Posted by $ЂЯĢ
Maybe you haven't pre-loaded that animation library, so you need to apply it two times for the first time. Btw, isn't better to use special action dancing than dancing animation?
Can't you just use ApplyAnimation?
Reply
#9

If the animation changes the players/bots location the animation will just stop.
Reply
#10

he dost move he just stands there waving lolz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)