18.10.2009, 17:28
#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?
#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?