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

Delete this new Carlos_car;
Reply
#3

Delete this new Carlos_car;
Reply
#4

Delete this new Carlos_car;
Reply
#5

Delete this new Carlos_car;
Reply
#6

Delete this new Carlos_car;
OMG... sorry delete last posts please becuase this stupid error with "Connection problem" gave so much posts here
Reply
#7

Thanks ill try it
Reply
#8

now i have new error :P

C:\Users\Administrator\Desktop\Pawno 0.3\npcmodes\Grove_attack.pwn(36) : error 017: undefined symbol "PutPlayerInVehicle"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#9

I would say that error is probably cause because of that it was just a warning it SHOULD still work im not sure if the npc will still work though. Try it.
Reply
#10

He doesnt even spawn now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)