SA-MP Forums Archive
How come the function StartRecordingPlayback is undefined for me? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How come the function StartRecordingPlayback is undefined for me? (/showthread.php?tid=119021)



How come the function StartRecordingPlayback is undefined for me? - Celson - 06.01.2010

I've got this code in a gamemode

Код:
public OnNPCEnterVehicle(vehicleid, seatid)
{
  StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"train1");
}
And I get this error + warning

Код:
C:\samp03asvr_win32\gamemodes\fastfood.pwn(221) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
C:\samp03asvr_win32\gamemodes\fastfood.pwn(223) : error 017: undefined symbol "StartRecordingPlayback"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I know the function exists cause I got the code from this page https://sampwiki.blast.hk/wiki/NPC:StartRecordingPlayback


Anybody know what's going on?




Re: How come the function StartRecordingPlayback is undefined for me? - Correlli - 06.01.2010

Your code belongs to the NPC script (you need to include the a_npc include file) and not to the GM/FS.