SA-MP Forums Archive
error 001: expected token: ";", but found "-end of file-" - 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)
+--- Thread: error 001: expected token: ";", but found "-end of file-" (/showthread.php?tid=524725)



error 001: expected token: ";", but found "-end of file-" - Julius95 - 08.07.2014

I followed this tutorioal because I wanted to create a npc vehicle using npc_record
https://www.youtube.com/watch?v=Z8sVDiht_ho
I recorded a NPC but when I came to the script I like in the video I get that error the title says

pawn Код:
#define RECORDING "Julius50"
#define RECORDING_TYPE 1

#include <a_npc>
main() {}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback()
#else
    public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif



Re: error 001: expected token: ";", but found "-end of file-" - Ihateyou - 08.07.2014

StopRecordingPlayback(); u forgot ";"


Re: error 001: expected token: ";", but found "-end of file-" - Konstantinos - 08.07.2014

You forgot a semicolon:
pawn Код:
public OnNPCExitVehicle() StopRecordingPlayback();