How to add two different jobs to the same Filterscript?
#1

Okay, so I was getting jobs for my server, and "had" each job in a separate filterscript. And then I tried to run my server and it wouldn't let me. So I decided I'd attempt to put two jobs together so i wont have a whole bunch of Filterscripts. This is my first attempt. Now I don't know if I put a return 0; at the end of the first job or what, so I'd appreciate some help if you could tell me the problem. Thanks. Oh, also The first job runs fine, but the second job doesn't. So that's why I was wondering if I put a return 0; at the end of the first.



Quote:

#include <a_samp>

#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define Checkpoint1 -256.0010,-1542.3809,3.9930
#define Checkpoint2 -231.8289,-1467.9810,4.9421
#define Checkpoint3 -193.9747,-1375.2502,4.7856
#define Checkpoint4 -246.0348,-1326.1063,8.9300
#define Checkpoint5 -407.1459,-1371.5518,23.6588
#define Checkpoint6 -564.7697,-1302.4977,22.5511
#define Checkpoint7 -569.0633,-1508.3352,9.1518
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA



new combinejobrunning = 0;
new info;

forward GivePlayerOneExp(playerid);

public OnFilterScriptInit()
{
AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10); // combine 1
AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10); // combine 2
AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10); // combine 3

info = CreatePickup(1239,1,-366.1941,-1440.3253,25.7266,-1);
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/combine", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)
{
SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);
CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0);
combinejobrunning = 1;
GameTextForPlayer(playerid, "~g~You started the job, good luck!", 3000, 3);
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now doing the Combine job.", name );
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
SendClientMessage(playerid, COLOR_RED,"You have to be in a truck to start the job");
}

if (strcmp("/combineinfo", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "You need to harvest the weed.");
SendClientMessage(playerid, COLOR_YELLOW, "If you enter the combine, type /combine and a red marker will appear.");
SendClientMessage(playerid, COLOR_YELLOW, "Just drive to the markers and you're done.");
return 1;
}
return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)
{
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1))
{
SetPlayerCheckpoint(playerid, Checkpoint2, 7.0);
CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint2))
{
SetPlayerCheckpoint(playerid, Checkpoint3, 7.0);
CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint3))
{
SetPlayerCheckpoint(playerid, Checkpoint4, 7.0);
CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint4))
{
SetPlayerCheckpoint(playerid, Checkpoint5, 7.0);
CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint5))
{
SetPlayerCheckpoint(playerid, Checkpoint6, 7.0);
CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint6))
{
SetPlayerCheckpoint(playerid, Checkpoint7, 7.0);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint7))
{
GivePlayerMoney(playerid, 4000);
GameTextForPlayer(playerid, "~g~You Completed the job, well done!", 3000, 3);
SetVehicleToRespawn(2);
combinejobrunning = 0;
DisablePlayerCheckpoint(playerid);
}
}
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)
{
SendClientMessage(playerid, COLOR_RED, "You can start the combine-job with /combine");
}
return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if((combinejobrunning) == 1)
{
combinejobrunning = 0;
SendClientMessage(playerid, COLOR_RED, "You left your combine behind, get in again if you want to continue your job.");

}else if((combinejobrunning) == 0){

//Nothing
}
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == info)
{
GameTextForPlayer(playerid, "~g~Welcome at the Combine job, use /combineinfo to know more", 3000, 3);
}
}




//============================================New Job===========================




new flyjobrunning = 0;
new info1;

public OnFilterScriptInit1()
{
AddStaticVehicle(519,1729.8932,-2415.7798,14.4727,149.2040,1,1); //

info = CreatePickup(1239,1,1748.7014,-2421.0500,13.5547,-1);
}

public OnPlayerCommandText1(playerid, cmdtext[])
{
if (strcmp("/startflight", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
{
flyjobrunning = 1;
SetPlayerCheckpoint(playerid, -1253.9714,238.6661,14.1484, 10);
GameTextForPlayer(playerid, "~g~You started the job, good luck!", 3000, 3);
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now delivering goods with a plane.", name );
SendClientMessageToAll(COLOR_RED, string);

return 1;
}
SendClientMessage(playerid, COLOR_RED,"You have to be in the jobplane to start the job");
}
if (strcmp("/flyinfo", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "You need to bring the planeload to the airport in San Fierro.");
SendClientMessage(playerid, COLOR_YELLOW, "There they will reward you for your help.");
SendClientMessage(playerid, COLOR_YELLOW, "If you enter the truck, type /startflight and a red marker will appear.");
SendClientMessage(playerid, COLOR_YELLOW, "Just fly to the marker and you're done.");
return 1;
}
return 0;
}
public OnPlayerEnterCheckpoint1(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
{
GivePlayerMoney(playerid, 5000);
GameTextForPlayer(playerid, "~g~You Completed the job, well done!", 3000, 3);
SetVehicleToRespawn(1);
DisablePlayerCheckpoint(playerid);
flyjobrunning = 0;
SetPlayerPos(playerid, 1729.8932,-2415.7798,14.4727);
}
}
public OnPlayerEnterVehicle1(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
{
SendClientMessage(playerid, COLOR_RED, "You can start the Fly job with /startflight");
}
return 0;
}
public OnPlayerExitVehicle1(playerid, vehicleid)
{
if((flyjobrunning) == 1)
{
flyjobrunning = 0;
SendClientMessage(playerid, COLOR_RED, "You left the plane, you failed the job.");

}else if((flyjobrunning) == 0){

//Nothing
}
}

public OnPlayerPickUpPickup1(playerid, pickupid)
{
if(pickupid == info)
{
GameTextForPlayer(playerid, "~g~Welcome at the Fly job, use /flyinfo to know more", 3000, 3);
}
}

Reply
#2

PHP код:


#include <a_samp>

#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define Checkpoint1 -256.0010,-1542.3809,3.9930
#define Checkpoint2 -231.8289,-1467.9810,4.9421
#define Checkpoint3 -193.9747,-1375.2502,4.7856
#define Checkpoint4 -246.0348,-1326.1063,8.9300
#define Checkpoint5 -407.1459,-1371.5518,23.6588
#define Checkpoint6 -564.7697,-1302.4977,22.5511
#define Checkpoint7 -569.0633,-1508.3352,9.1518
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA



new combinejobrunning 0;
new 
info;
new 
flyjobrunning 0;
new 
info1;

forward GivePlayerOneExp(playerid);

public 
OnFilterScriptInit()
{
AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10); // combine 1
AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10); // combine 2
AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10); // combine 3
AddStaticVehicle(519,1729.8932,-2415.7798,14.4727,149.2040,1,1); //

info CreatePickup(1239,1,1748.7014,-2421.0500,13.5547,

info CreatePickup(1239,1,-366.1941,-1440.3253,25.7266,-1);
}

public 
OnPlayerCommandText(playeridcmdtext[])
{
if (
strcmp("/combine"cmdtexttrue10) == 0)
{
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)
{
SetPlayerCheckpoint(playeridCheckpoint13.0);
CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0);
combinejobrunning 1;
GameTextForPlayer(playerid"~g~You started the job, good luck!"30003);
new 
name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playeridnamesizeof(name));
format(stringsizeof(string), "%s is now doing the Combine job."name );
SendClientMessageToAll(COLOR_REDstring);
return 
1;
}
SendClientMessage(playeridCOLOR_RED,"You have to be in a truck to start the job");
}

if (
strcmp("/combineinfo"cmdtexttrue10) == 0)
{
SendClientMessage(playeridCOLOR_YELLOW"You need to harvest the weed.");
SendClientMessage(playeridCOLOR_YELLOW"If you enter the combine, type /combine and a red marker will appear.");
SendClientMessage(playeridCOLOR_YELLOW"Just drive to the markers and you're done.");
return 
1;
}
if (
strcmp("/startflight"cmdtexttrue10) == 0)
{
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
{
flyjobrunning 1;
SetPlayerCheckpoint(playerid, -1253.9714,238.6661,14.148410);
GameTextForPlayer(playerid"~g~You started the job, good luck!"30003);
new 
name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playeridnamesizeof(name));
format(stringsizeof(string), "%s is now delivering goods with a plane."name );
SendClientMessageToAll(COLOR_REDstring);

return 
1;
}
SendClientMessage(playeridCOLOR_RED,"You have to be in the jobplane to start the job");
}
if (
strcmp("/flyinfo"cmdtexttrue10) == 0)
{
SendClientMessage(playeridCOLOR_YELLOW"You need to bring the planeload to the airport in San Fierro.");
SendClientMessage(playeridCOLOR_YELLOW"There they will reward you for your help.");
SendClientMessage(playeridCOLOR_YELLOW"If you enter the truck, type /startflight and a red marker will appear.");
SendClientMessage(playeridCOLOR_YELLOW"Just fly to the marker and you're done.");
return 
1;
}
return 
0;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)
{
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint1))
{
SetPlayerCheckpoint(playeridCheckpoint27.0);
CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0);
}
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint2))
{
SetPlayerCheckpoint(playeridCheckpoint37.0);
CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0);
}
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint3))
{
SetPlayerCheckpoint(playeridCheckpoint47.0);
CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0);
}
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint4))
{
SetPlayerCheckpoint(playeridCheckpoint57.0);
CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0);
}
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint5))
{
SetPlayerCheckpoint(playeridCheckpoint67.0);
CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0);
}
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint6))
{
SetPlayerCheckpoint(playeridCheckpoint77.0);
}
if (
IsPlayerInRangeOfPoint(playerid7.0,Checkpoint7))
{
GivePlayerMoney(playerid4000);
GameTextForPlayer(playerid"~g~You Completed the job, well done!"30003);
SetVehicleToRespawn(2);
combinejobrunning 0;
DisablePlayerCheckpoint(playerid);
}
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
{
GivePlayerMoney(playerid5000);
GameTextForPlayer(playerid"~g~You Completed the job, well done!"30003);
SetVehicleToRespawn(1);
DisablePlayerCheckpoint(playerid);
flyjobrunning 0;
SetPlayerPos(playerid1729.8932,-2415.7798,14.4727);
}
}
}
}

public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)
{
SendClientMessage(playeridCOLOR_RED"You can start the combine-job with /combine");
}
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 519)
{
SendClientMessage(playeridCOLOR_RED"You can start the Fly job with /startflight");
}
return 
0;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
if((
combinejobrunning) == 1)
{
combinejobrunning 0;
SendClientMessage(playeridCOLOR_RED"You left your combine behind, get in again if you want to continue your job.");

}else if((
combinejobrunning) == 0){

if((
flyjobrunning) == 1)
{
flyjobrunning 0;
SendClientMessage(playeridCOLOR_RED"You left the plane, you failed the job.");

}else if((
flyjobrunning) == 0){

//Nothing
}
}

public 
OnPlayerPickUpPickup1(playeridpickupid)
{
if(
pickupid == info)
{
GameTextForPlayer(playerid"~g~Welcome at the Fly job, use /flyinfo to know more"30003);
}
}

public 
OnPlayerPickUpPickup(playeridpickupid)
{
if(
pickupid == info)
{
GameTextForPlayer(playerid"~g~Welcome at the Combine job, use /combineinfo to know more"30003);
}

Try these
Reply
#3

When I try to compile it, I get.

Quote:

D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(32 -- 34) : error 001: expected token: ",", but found ";"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(141) : error 054: unmatched closing brace ("}")
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(175) : error 029: invalid expression, assumed zero
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(175) : error 017: undefined symbol "OnPlayerPickUpPickup1"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(177) : error 017: undefined symbol "pickupid"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(183) : error 029: invalid expression, assumed zero
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(183) : error 004: function "OnPlayerPickUpPickup" is not implemented
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(185) : error 017: undefined symbol "pickupid"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(190) : error 030: compound statement not closed at the end of file (started at line 157)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.

Thanks for trying to help me.
Reply
#4

pawn Код:
#include <a_samp>

#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define Checkpoint1 -256.0010,-1542.3809,3.9930
#define Checkpoint2 -231.8289,-1467.9810,4.9421
#define Checkpoint3 -193.9747,-1375.2502,4.7856
#define Checkpoint4 -246.0348,-1326.1063,8.9300
#define Checkpoint5 -407.1459,-1371.5518,23.6588
#define Checkpoint6 -564.7697,-1302.4977,22.5511
#define Checkpoint7 -569.0633,-1508.3352,9.1518
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new combinejobrunning = 0;
new info;
new flyjobrunning = 0;
new info1;

forward GivePlayerOneExp(playerid);

public OnFilterScriptInit()
{
                                                  // combine 1
    AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10);
                                                  // combine 2
    AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10);
                                                  // combine 3
    AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10);
                                                  //
    AddStaticVehicle(519,1729.8932,-2415.7798,14.4727,149.2040,1,1);

    info = CreatePickup(1239,1,1748.7014,-2421.0500,13.5547,

        info = CreatePickup(1239,1,-366.1941,-1440.3253,25.7266,-1);
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/combine", cmdtext, true, 10) == 0) {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) {
            SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);
                CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0);
                combinejobrunning = 1;
                GameTextForPlayer(playerid, "~g~You started the job, good luck!", 3000, 3);
                new name[MAX_PLAYER_NAME], string[48];
                GetPlayerName(playerid, name, sizeof(name));
                format(string, sizeof(string), "%s is now doing the Combine job.", name );
                SendClientMessageToAll(COLOR_RED, string);
                return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in a truck to start the job");
    }

    if (strcmp("/combineinfo", cmdtext, true, 10) == 0) {
        SendClientMessage(playerid, COLOR_YELLOW, "You need to harvest the weed.");
            SendClientMessage(playerid, COLOR_YELLOW, "If you enter the combine, type /combine and a red marker will appear.");
            SendClientMessage(playerid, COLOR_YELLOW, "Just drive to the markers and you're done.");
            return 1;
    }
    if (strcmp("/startflight", cmdtext, true, 10) == 0) {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519) {
            flyjobrunning = 1;
                SetPlayerCheckpoint(playerid, -1253.9714,238.6661,14.1484, 10);
                GameTextForPlayer(playerid, "~g~You started the job, good luck!", 3000, 3);
                new name[MAX_PLAYER_NAME], string[48];
                GetPlayerName(playerid, name, sizeof(name));
                format(string, sizeof(string), "%s is now delivering goods with a plane.", name );
                SendClientMessageToAll(COLOR_RED, string);

                return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in the jobplane to start the job");
    }
    if (strcmp("/flyinfo", cmdtext, true, 10) == 0) {
        SendClientMessage(playerid, COLOR_YELLOW, "You need to bring the planeload to the airport in San Fierro.");
            SendClientMessage(playerid, COLOR_YELLOW, "There they will reward you for your help.");
            SendClientMessage(playerid, COLOR_YELLOW, "If you enter the truck, type /startflight and a red marker will appear.");
            SendClientMessage(playerid, COLOR_YELLOW, "Just fly to the marker and you're done.");
            return 1;
    }
    return 0;
}


public OnPlayerEnterCheckpoint(playerid)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) {
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1)) {
            SetPlayerCheckpoint(playerid, Checkpoint2, 7.0);
                CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint2)) {
            SetPlayerCheckpoint(playerid, Checkpoint3, 7.0);
                CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint3)) {
            SetPlayerCheckpoint(playerid, Checkpoint4, 7.0);
                CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint4)) {
            SetPlayerCheckpoint(playerid, Checkpoint5, 7.0);
                CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint5)) {
            SetPlayerCheckpoint(playerid, Checkpoint6, 7.0);
                CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint6)) {
            SetPlayerCheckpoint(playerid, Checkpoint7, 7.0);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint7)) {
            GivePlayerMoney(playerid, 4000);
                GameTextForPlayer(playerid, "~g~You Completed the job, well done!", 3000, 3);
                SetVehicleToRespawn(2);
                combinejobrunning = 0;
                DisablePlayerCheckpoint(playerid);
        }
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519) {
            GivePlayerMoney(playerid, 5000);
                GameTextForPlayer(playerid, "~g~You Completed the job, well done!", 3000, 3);
                SetVehicleToRespawn(1);
                DisablePlayerCheckpoint(playerid);
                flyjobrunning = 0;
                SetPlayerPos(playerid, 1729.8932,-2415.7798,14.4727);
        }
    }
}


}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) {
        SendClientMessage(playerid, COLOR_RED, "You can start the combine-job with /combine");
    }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519) {
        SendClientMessage(playerid, COLOR_RED, "You can start the Fly job with /startflight");
    }
    return 0;
}


public OnPlayerExitVehicle(playerid, vehicleid)
{
    if((combinejobrunning) == 1) {
        combinejobrunning = 0;
            SendClientMessage(playerid, COLOR_RED, "You left your combine behind, get in again if you want to continue your job.");

    }
    else if((combinejobrunning) == 0) {

        if((flyjobrunning) == 1) {
            flyjobrunning = 0;
                SendClientMessage(playerid, COLOR_RED, "You left the plane, you failed the job.");

        }
        else if((flyjobrunning) == 0) {

//Nothing
        }
    }

    public OnPlayerPickUpPickup1(playerid, pickupid) {
        if(pickupid == info) {
            GameTextForPlayer(playerid, "~g~Welcome at the Fly job, use /flyinfo to know more", 3000, 3);
        }
    }

    public OnPlayerPickUpPickup(playerid, pickupid) {
        if(pickupid == info) {
            GameTextForPlayer(playerid, "~g~Welcome at the Combine job, use /combineinfo to know more", 3000, 3);
        }
    }
try this one.
Reply
#5

Even more errors.
Quote:

D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(34 -- 36) : error 001: expected token: ",", but found ";"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(45) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(59) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(66) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(79) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(93) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(97) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(101) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(105) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(109) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(116) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(123) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(133) : error 054: unmatched closing brace ("}")
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(151) : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(15 : warning 217: loose indentation
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(167) : error 029: invalid expression, assumed zero
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(167) : error 017: undefined symbol "OnPlayerPickUpPickup1"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(16 : error 017: undefined symbol "pickupid"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(173) : error 029: invalid expression, assumed zero
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(173) : error 004: function "OnPlayerPickUpPickup" is not implemented
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(174) : error 017: undefined symbol "pickupid"
D:\user\Desktop\Raven's Roleplay 0.3c\filterscripts\combinejob.pwn(17 : error 030: compound statement not closed at the end of file (started at line 149)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.

What's the problem I'm doing wrong so the second job wont work? Maybe I can figure it out.
Reply
#6

If I could know the lines I'll help you.
Reply
#7

I do have teamviewer. Or i could send you the .pwn /amx file. Just send me a message. I appreciate your help.
Reply
#8

Send me the .pwn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)