error 001: expected token: ";", but found "-end of file-"
#1

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
Reply
#2

StopRecordingPlayback(); u forgot ";"
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)