would this work? and how
#1

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?


Код:
#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
because i get a error

Код:
C:\Users\************\Desktop\mynpc.pwn(8) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
and i cant make this in my gamemode because it says undefined startrecordingplayback
Reply


Messages In This Thread
would this work? and how - by CrazyBlob - 20.05.2011, 20:47
Re: would this work? and how - by Blt950 - 20.05.2011, 23:54
Re: would this work? and how - by grand.Theft.Otto - 21.05.2011, 00:28

Forum Jump:


Users browsing this thread: 1 Guest(s)