SA-MP Forums Archive
Need help with a NPC filterscript - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with a NPC filterscript (/showthread.php?tid=103148)



Need help with a NPC filterscript - Tyler_Idy - 18.10.2009

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


Re: Need help with a NPC filterscript - toneysix - 18.10.2009

Delete this new Carlos_car;


Re: Need help with a NPC filterscript - toneysix - 18.10.2009

Delete this new Carlos_car;


Re: Need help with a NPC filterscript - toneysix - 18.10.2009

Delete this new Carlos_car;


Re: Need help with a NPC filterscript - toneysix - 18.10.2009

Delete this new Carlos_car;


Re: Need help with a NPC filterscript - toneysix - 18.10.2009

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


Re: Need help with a NPC filterscript - Tyler_Idy - 18.10.2009

Thanks ill try it


Re: Need help with a NPC filterscript - Tyler_Idy - 18.10.2009

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.



Re: Need help with a NPC filterscript - Jake Canfield - 18.10.2009

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.


Re: Need help with a NPC filterscript - Tyler_Idy - 18.10.2009

He doesnt even spawn now.