GooD Posted July 9, 2013 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"
danii14 Posted July 9, 2013 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 !
GooD Posted July 9, 2013 Author 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 ".
danii14 Posted July 9, 2013 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 !
DarkyTheAngel Posted July 9, 2013 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]
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"
4 answers to this question
Recommended Posts