Errors with NPC publics
#1

And yes I did add #include <a_npc> at the top of the filterscript

pawn Код:
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(26) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd")
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(26) : error 017: undefined symbol "StartRecordingPlayback"
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(27) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(27) : error 017: undefined symbol "StartRecordingPlayback"
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(28) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle")
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(28) : error 017: undefined symbol "StopRecordingPlayback"
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(29) : warning 235: public function lacks forward declaration (symbol "OnNPCSpawn")
C:\Program Files\GTA San Andreas\Samp Server\filterscripts\NPCs.pwn(29) : error 017: undefined symbol "StartRecordingPlayback"
pawn Код:
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
Reply
#2

Hmm that's weird. Try downloading the latest include file from here.
Reply
#3

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
Hmm that's weird. Try downloading the latest include file from here.
Doesnt work
Reply
#4

Check:

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
AFAIK you can't use a_npc inside your gamemode. You can only use it in NPC script.
https://sampforum.blast.hk/showthread.php?tid=95034
Quote:
Originally Posted by MadeMan
Посмотреть сообщение
If it's npcmode, remove the
pawn Код:
#include <a_samp>
Reply
#5

Quote:
Originally Posted by nepstep
Посмотреть сообщение
Check:
It still doesnt work
Reply
#6

Quote:
Originally Posted by nuriel8833
Посмотреть сообщение
It still doesnt work
Still the same errors?
Reply
#7

You can't include a_npc.inc in your filterscript. You can only include it in a npc mode and you can't include both a_npc.inc and a_samp.inc in the same script.

Also, make sure your Pawno is reading the *.inc files from the correct folder. If you have multiple Pawno programs on your computer, they might get mixed up. (Searching *.inc files in the wrong include folder) You can just fix it by relaunching the Pawno.exe from the correct folder, relatively to the correct include folder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)