Jump to content

Question

Posted

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"

4 answers to this question

Recommended Posts

Posted

Cauta in FS daca ai aceasta linie si daca nu cumva ai scris-o gresit . Daca tot asa face ar trebuie sa adaugi include "onfool" .

Te-am ajutat ? Dami un +1 si suntem chit :) !

Posted

Cauta in FS daca ai aceasta linie si daca nu cumva ai scris-o gresit . Daca tot asa face ar trebuie sa adaugi include "onfool" .

FS-ul il ai in fata, n-am gresit nimic si nu exista include "onfool ".

Posted

Inlocuieste:

[pawn]public OnRecordingPlaybackEnd() StartRecordingPlayback(onfool,rec);[/pawn]

cu

[pawn]public OnRecordingPlaybackEnd() StartRecordingPlayback(onfoot,rec);[/pawn]

Te-am ajutat ? Dami un +1 si suntem chit :) !

Posted

[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]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.