How come the function StartRecordingPlayback is undefined for me?
#1

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?

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)