GooD Posted July 9, 2013 Report Share Posted July 9, 2013 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 2main(){}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 More sharing options...
danii14 Posted July 9, 2013 Report Share Posted July 9, 2013 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 ! Link to comment Share on other sites More sharing options...
GooD Posted July 9, 2013 Author Report Share Posted July 9, 2013 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 ". Link to comment Share on other sites More sharing options...
danii14 Posted July 9, 2013 Report Share Posted July 9, 2013 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 ! Link to comment Share on other sites More sharing options...
DarkyTheAngel Posted July 9, 2013 Report Share Posted July 9, 2013 [pawn]#include <a_npc>#define rec "npc_smoke2"#define onfoot 2main(){}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 More sharing options...
Question
GooD
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