Need help with a NPC filterscript
#1

#include <a_npc>

#define NUM_PLAYBACK_FILES 3
new gPlaybackFileCycle=0;
new Carlos_car;
//------------------------------------------

main(){}

//------------------------------------------

NextPlayback()
{
// Reset the cycle count if we reach the max
if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;

if(gPlaybackFileCycle==0) {
StartRecordingPlayback(2,"Carlos_walk_to_car");
SendChat("I'm going to my car. If you want a ride, get in and say 'Go'");
}
else if(gPlaybackFileCycle==1) {
StartRecordingPlayback(1,"Carlos_in_car");
SendChat("A'ight, letz roll");
}
else if(gPlaybackFileCycle==2) {
StartRecordingPlayback(2,"Carlos_shoot");
SendChat("Lets kill some punk ass bitches!");

}

gPlaybackFileCycle++;
}
//------------------------------------------


//------------------------------------------

public OnNPCEnterVehicle(vehicleid, seatid)
{
SendChat("Just get in and say Go");
}
//------------------------------------------

public OnPlayerText(playerid, text[])
{
if (strfind(text, "Go") != -1)
{
NextPlayback();
}
}


//------------------------------------------

public OnNPCExitVehicle()
{
StopRecordingPlayback();
gPlaybackFileCycle = 2;
}

//------------------------------------------




C:\Users\Administrator\Desktop\Pawno 0.3\npcmodes\Grove_attack.pwn(62) : warning 203: symbol is never used: "Carlos_car"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

How do i fix?
Reply


Messages In This Thread
Need help with a NPC filterscript - by Tyler_Idy - 18.10.2009, 17:28
Re: Need help with a NPC filterscript - by toneysix - 18.10.2009, 17:52
Re: Need help with a NPC filterscript - by toneysix - 18.10.2009, 17:52
Re: Need help with a NPC filterscript - by toneysix - 18.10.2009, 18:00
Re: Need help with a NPC filterscript - by toneysix - 18.10.2009, 18:00
Re: Need help with a NPC filterscript - by toneysix - 18.10.2009, 18:01
Re: Need help with a NPC filterscript - by Tyler_Idy - 18.10.2009, 18:12
Re: Need help with a NPC filterscript - by Tyler_Idy - 18.10.2009, 18:13
Re: Need help with a NPC filterscript - by Jake Canfield - 18.10.2009, 18:40
Re: Need help with a NPC filterscript - by Tyler_Idy - 18.10.2009, 18:48

Forum Jump:


Users browsing this thread: 1 Guest(s)