20.05.2011, 20:47
im making a [BOT] Truck driver who does missions and i want it so when he gets a mission it'll playback the recorded file doing that mission simple rite?
well on my npc how would i create a command?
because i get a error
and i cant make this in my gamemode because it says undefined startrecordingplayback
well on my npc how would i create a command?
Код:
#define RECORDING "mynpc" //This is the filename of your recording without the extension. #define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot. #include <a_npc> #include <a_samp> main() { if(strcmp(cmd, "/npcwork", true) == 0) { return 1; } return 1; } 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
Код:
C:\Users\************\Desktop\mynpc.pwn(8) : error 017: undefined symbol "cmd" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.