Jump to content
  • 0

NPC


GooD

Question

Salut am incercat sa fac un NPC dupa acest tutorial:

Am facut totul corect dar am o prob.

Cand ii dau compile la asta:

[pawn]

#include <a_npc>

#define rec "npc_smoke2"

#define onfoot 2

main(){}

public OnRecordingPlaybackEnd() StartRecordingPlayback(onfool,rec);

public OnNPCSpawn()

{

  SetMyPos(2488.9075,-1673.7980,13.3359);

  StartRecordingPlayback(onfool,rec);

}

public OnPlayerStreamIn(playerid)

{

  SetTimer("SendCmd",10000,true);

}

forward SendCmd();

public SendCmd()

{

  SendCommand("/anim");

}

[/pawn]

Imi da 2 errori:

npc_smoke.pwn(7) : error 017: undefined symbol "onfool"

npc_smoke.pwn(11) : error 017: undefined symbol "onfool"

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

[pawn]#include <a_npc>

#define rec "npc_smoke2"

#define onfoot 2

main(){}

public OnRecordingPlaybackEnd() StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,rec);

public OnNPCSpawn()

{

  SetMyPos(2488.9075,-1673.7980,13.3359);

  StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,rec);

}

public OnPlayerStreamIn(playerid)

{

  SetTimer("SendCmd",10000,true);

}

forward SendCmd();

public SendCmd()

{

  SendCommand("/anim");

}

[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.