What's incorrect in this script? Invalid function/declaration
#1

Hey, sorry for pasting a long script, but I'm not sure what the "invalid function/declaration is.. I'm more concerned about the If(Removalist[playerid] == 1; part that I've created. Not sure if I done the brackets correctly or not.

I've already got Removalist[MAX_PLAYERS] etc at the top of my script.

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(CP[playerid] == 1) // Drivers License Test
    {
        if(IsPlayerInRangeOfPoint(playerid,5,-1260.7194,2694.6663,49.8266)) // Checkpoint 1
        {
            SetPlayerCheckpoint(playerid,-1317.6917,2660.4553,49.9034,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1317.6917,2660.4553,49.9034)) // Checkpoint 2
        {
            SetPlayerCheckpoint(playerid,-1374.3701,2610.0176,53.8429,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1374.3701,2610.0176,53.8429)) // Checkpoint 3
        {
            SetPlayerCheckpoint(playerid,-1413.9224,2603.1677,55.4211,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1413.9224,2603.1677,55.4211)) // Checkpoint 4
        {
            SetPlayerCheckpoint(playerid,-1439.6835,2673.0615,55.4306,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1439.6835,2673.0615,55.4306)) // Checkpoint 5
        {
            SetPlayerCheckpoint(playerid,-1483.0125,2673.7649,55.4350,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1483.0125,2673.7649,55.4350)) // Checkpoint 6
        {
            SetPlayerCheckpoint(playerid,-1532.4152,2673.7100,55.4324,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1532.4152,2673.7100,55.4324)) // Checkpoint 7
        {
            SetPlayerCheckpoint(playerid,-1548.4847,2612.7024,55.4332,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1548.4847,2612.7024,55.4332)) // Checkpoint 8
        {
            SetPlayerCheckpoint(playerid,-1527.3284,2548.5583,55.4337,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1527.3284,2548.5583,55.4337)) // Checkpoint 9
        {
            SetPlayerCheckpoint(playerid,-1493.8063,2586.9353,55.4354,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1493.8063,2586.9353,55.4354)) // Checkpoint 10
        {
            SetPlayerCheckpoint(playerid,-1438.9851,2598.8762,55.4351,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1438.9851,2598.8762,55.4351)) // Checkpoint 11
        {
            SetPlayerCheckpoint(playerid,-1391.0577,2599.1448,55.2371,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1391.0577,2599.1448,55.2371)) // Checkpoint 12
        {
            SetPlayerCheckpoint(playerid,-1422.2595,2510.6897,61.6368,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1422.2595,2510.6897,61.6368)) // Checkpoint 13
        {
            SetPlayerCheckpoint(playerid,-1408.8035,2293.3911,54.7593,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1408.8035,2293.3911,54.7593)) // Checkpoint 14
        {
            SetPlayerCheckpoint(playerid,-1345.4774,2115.6318,48.5341,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1345.4774,2115.6318,48.5341)) // Checkpoint 15
        {
            SetPlayerCheckpoint(playerid,-1326.6051,1981.4150,50.9583,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1326.6051,1981.4150,50.9583)) // Checkpoint 16
        {
            SetPlayerCheckpoint(playerid,-1183.9515,1807.6354,40.4953,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1183.9515,1807.6354,40.4953)) // Checkpoint 17
        {
            SetPlayerCheckpoint(playerid,-1045.7943,1843.8173,55.6865,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1045.7943,1843.8173,55.6865)) // Checkpoint 18
        {
            SetPlayerCheckpoint(playerid,-893.6824,1790.1135,59.8250,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-893.6824,1790.1135,59.8250)) // Checkpoint 19
        {
            SetPlayerCheckpoint(playerid,-870.5801,1929.3770,59.8574,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-870.5801,1929.3770,59.8574)) // Checkpoint 20
        {
            SetPlayerCheckpoint(playerid,-497.8629,1985.6002,59.9409,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-497.8629,1985.6002,59.9409)) // Checkpoint 21
        {
            SetPlayerCheckpoint(playerid,-401.4277,2077.2068,61.4113,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-401.4277,2077.2068,61.4113)) // Checkpoint 22
        {
            SetPlayerCheckpoint(playerid,-459.3476,1979.6223,79.9793,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-459.3476,1979.6223,79.9793)) // Checkpoint 23
        {
            SetPlayerCheckpoint(playerid,-470.2452,1784.1230,74.0922,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-470.2452,1784.1230,74.0922)) // Checkpoint 24
        {
            SetPlayerCheckpoint(playerid,-430.1774,1871.5712,62.1439,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-430.1774,1871.5712,62.1439)) // Checkpoint 25
        {
            SetPlayerCheckpoint(playerid,-404.9424,1744.2050,41.7759,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-404.9424,1744.2050,41.7759)) // Checkpoint 26
        {
            SetPlayerCheckpoint(playerid,-377.3472,1293.5734,24.5122,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-377.3472,1293.5734,24.5122)) // Checkpoint 27
        {
            SetPlayerCheckpoint(playerid,-110.0201,1251.7935,15.9808,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-110.0201,1251.7935,15.9808)) // Checkpoint 28
        {
            SetPlayerCheckpoint(playerid,173.5700,1143.9146,13.9842,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,173.5700,1143.9146,13.9842)) // Checkpoint 29
        {
            SetPlayerCheckpoint(playerid,255.5711,1214.2163,15.3655,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,255.5711,1214.2163,15.3655)) // Checkpoint 30
        {
            SetPlayerCheckpoint(playerid,376.8543,1492.8822,8.9911,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,376.8543,1492.8822,8.9911)) // Checkpoint 31
        {
            SetPlayerCheckpoint(playerid,505.5781,1659.4467,13.1762,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,505.5781,1659.4467,13.1762)) // Checkpoint 32
        {
            SetPlayerCheckpoint(playerid,584.1212,1819.5228,13.6795,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,584.1212,1819.5228,13.6795)) // Checkpoint 33
        {
            SetPlayerCheckpoint(playerid,608.7386,2048.9285,36.2321,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,608.7386,2048.9285,36.2321)) // Checkpoint 34
        {
            SetPlayerCheckpoint(playerid,509.9402,2357.4634,29.8565,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,509.9402,2357.4634,29.8565)) // Checkpoint 35
        {
            SetPlayerCheckpoint(playerid,273.9745,2288.2498,24.7684,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,273.9745,2288.2498,24.7684)) // Checkpoint 36
        {
            SetPlayerCheckpoint(playerid,-13.2794,2302.7749,24.5106,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-13.2794,2302.7749,24.5106)) // Checkpoint 37
        {
            SetPlayerCheckpoint(playerid,-521.4971,2428.2092,58.3551,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-521.4971,2428.2092,58.3551)) // Checkpoint 39
        {
            SetPlayerCheckpoint(playerid,-730.0899,2615.9016,67.4429,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-730.0899,2615.9016,67.4429)) // Checkpoint 40
        {
            SetPlayerCheckpoint(playerid,-696.9487,2684.7356,56.3441,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-696.9487,2684.7356,56.3441)) // Checkpoint 41
        {
            SetPlayerCheckpoint(playerid,-761.1194,2696.5459,47.9677,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-761.1194,2696.5459,47.9677)) // Checkpoint 42
        {
            SetPlayerCheckpoint(playerid,-775.5515,2720.2551,45.0647,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-775.5515,2720.2551,45.0647)) // Checkpoint 43
        {
            SetPlayerCheckpoint(playerid,-1049.2953,2709.6973,45.6144,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1049.2953,2709.6973,45.6144)) // Checkpoint 44
        {
            SetPlayerCheckpoint(playerid,-1270.4656,2671.1289,48.4106,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1270.4656,2671.1289,48.4106)) // Checkpoint 45
        {
            SetPlayerCheckpoint(playerid,-1267.1816,2697.7236,49.8040,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1267.1816,2697.7236,49.8040)) // Checkpoint 46 aka end
        {
            new Float:Health1;
            GetVehicleHealth(GetPlayerVehicleID(playerid), Health1);
            if(Health1 > 900)
            {
                DisablePlayerCheckpoint(playerid);
                PlayerStat[playerid][CarLic] = 1;
                LicenseTest[playerid] = 0;
                CP[playerid] = 0;
                SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                SendClientMessage(playerid, COLOR_DMV, "* Driving Center: You have successfully passed the test and received your license.");
            }
            else
            {
                DisablePlayerCheckpoint(playerid);
                LicenseTest[playerid] = 0;
                CP[playerid] = 0;
                SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                SendClientMessage(playerid, COLOR_DMV, "* Driving Center: You have critically damaged your vehicle, therefore you failed the test.");
            }
        }
        else DisablePlayerCheckpoint(playerid);
}
return 1;
}                   //trucker job

    if(Removalist[playerid] == 1)) //error here
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 850.6198, -1483.6526, 13.3298)) && if(IsPlayerInVehicle(playerid, 515)) //error here
        {
            SendClientMessage(playerid, ORANGE, "You have delivered the goods and received $500!");
            GivePlayerMoney(playerid, 500);
        }
        else //error here
        {
            SendClientMessage(playerid, GREY, "You are not in the delivery vehicle!");
        }
    }
    return 1; //error here
}
pawn Код:
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2729) : error 010: invalid function or declaration
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2731) : error 010: invalid function or declaration
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2736) : error 010: invalid function or declaration
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2741) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Thank you
Reply
#2

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CP[playerid] == 1) // Drivers License Test
    {
        if(IsPlayerInRangeOfPoint(playerid,5,-1260.7194,2694.6663,49.8266)) // Checkpoint 1
        {
            SetPlayerCheckpoint(playerid,-1317.6917,2660.4553,49.9034,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1317.6917,2660.4553,49.9034)) // Checkpoint 2
        {
            SetPlayerCheckpoint(playerid,-1374.3701,2610.0176,53.8429,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1374.3701,2610.0176,53.8429)) // Checkpoint 3
        {
            SetPlayerCheckpoint(playerid,-1413.9224,2603.1677,55.4211,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1413.9224,2603.1677,55.4211)) // Checkpoint 4
        {
            SetPlayerCheckpoint(playerid,-1439.6835,2673.0615,55.4306,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1439.6835,2673.0615,55.4306)) // Checkpoint 5
        {
            SetPlayerCheckpoint(playerid,-1483.0125,2673.7649,55.4350,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1483.0125,2673.7649,55.4350)) // Checkpoint 6
        {
            SetPlayerCheckpoint(playerid,-1532.4152,2673.7100,55.4324,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1532.4152,2673.7100,55.4324)) // Checkpoint 7
        {
            SetPlayerCheckpoint(playerid,-1548.4847,2612.7024,55.4332,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1548.4847,2612.7024,55.4332)) // Checkpoint 8
        {
            SetPlayerCheckpoint(playerid,-1527.3284,2548.5583,55.4337,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1527.3284,2548.5583,55.4337)) // Checkpoint 9
        {
            SetPlayerCheckpoint(playerid,-1493.8063,2586.9353,55.4354,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1493.8063,2586.9353,55.4354)) // Checkpoint 10
        {
            SetPlayerCheckpoint(playerid,-1438.9851,2598.8762,55.4351,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1438.9851,2598.8762,55.4351)) // Checkpoint 11
        {
            SetPlayerCheckpoint(playerid,-1391.0577,2599.1448,55.2371,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1391.0577,2599.1448,55.2371)) // Checkpoint 12
        {
            SetPlayerCheckpoint(playerid,-1422.2595,2510.6897,61.6368,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1422.2595,2510.6897,61.6368)) // Checkpoint 13
        {
            SetPlayerCheckpoint(playerid,-1408.8035,2293.3911,54.7593,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1408.8035,2293.3911,54.7593)) // Checkpoint 14
        {
            SetPlayerCheckpoint(playerid,-1345.4774,2115.6318,48.5341,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1345.4774,2115.6318,48.5341)) // Checkpoint 15
        {
            SetPlayerCheckpoint(playerid,-1326.6051,1981.4150,50.9583,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1326.6051,1981.4150,50.9583)) // Checkpoint 16
        {
            SetPlayerCheckpoint(playerid,-1183.9515,1807.6354,40.4953,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1183.9515,1807.6354,40.4953)) // Checkpoint 17
        {
            SetPlayerCheckpoint(playerid,-1045.7943,1843.8173,55.6865,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1045.7943,1843.8173,55.6865)) // Checkpoint 18
        {
            SetPlayerCheckpoint(playerid,-893.6824,1790.1135,59.8250,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-893.6824,1790.1135,59.8250)) // Checkpoint 19
        {
            SetPlayerCheckpoint(playerid,-870.5801,1929.3770,59.8574,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-870.5801,1929.3770,59.8574)) // Checkpoint 20
        {
            SetPlayerCheckpoint(playerid,-497.8629,1985.6002,59.9409,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-497.8629,1985.6002,59.9409)) // Checkpoint 21
        {
            SetPlayerCheckpoint(playerid,-401.4277,2077.2068,61.4113,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-401.4277,2077.2068,61.4113)) // Checkpoint 22
        {
            SetPlayerCheckpoint(playerid,-459.3476,1979.6223,79.9793,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-459.3476,1979.6223,79.9793)) // Checkpoint 23
        {
            SetPlayerCheckpoint(playerid,-470.2452,1784.1230,74.0922,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-470.2452,1784.1230,74.0922)) // Checkpoint 24
        {
            SetPlayerCheckpoint(playerid,-430.1774,1871.5712,62.1439,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-430.1774,1871.5712,62.1439)) // Checkpoint 25
        {
            SetPlayerCheckpoint(playerid,-404.9424,1744.2050,41.7759,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-404.9424,1744.2050,41.7759)) // Checkpoint 26
        {
            SetPlayerCheckpoint(playerid,-377.3472,1293.5734,24.5122,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-377.3472,1293.5734,24.5122)) // Checkpoint 27
        {
            SetPlayerCheckpoint(playerid,-110.0201,1251.7935,15.9808,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-110.0201,1251.7935,15.9808)) // Checkpoint 28
        {
            SetPlayerCheckpoint(playerid,173.5700,1143.9146,13.9842,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,173.5700,1143.9146,13.9842)) // Checkpoint 29
        {
            SetPlayerCheckpoint(playerid,255.5711,1214.2163,15.3655,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,255.5711,1214.2163,15.3655)) // Checkpoint 30
        {
            SetPlayerCheckpoint(playerid,376.8543,1492.8822,8.9911,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,376.8543,1492.8822,8.9911)) // Checkpoint 31
        {
            SetPlayerCheckpoint(playerid,505.5781,1659.4467,13.1762,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,505.5781,1659.4467,13.1762)) // Checkpoint 32
        {
            SetPlayerCheckpoint(playerid,584.1212,1819.5228,13.6795,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,584.1212,1819.5228,13.6795)) // Checkpoint 33
        {
            SetPlayerCheckpoint(playerid,608.7386,2048.9285,36.2321,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,608.7386,2048.9285,36.2321)) // Checkpoint 34
        {
            SetPlayerCheckpoint(playerid,509.9402,2357.4634,29.8565,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,509.9402,2357.4634,29.8565)) // Checkpoint 35
        {
            SetPlayerCheckpoint(playerid,273.9745,2288.2498,24.7684,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,273.9745,2288.2498,24.7684)) // Checkpoint 36
        {
            SetPlayerCheckpoint(playerid,-13.2794,2302.7749,24.5106,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-13.2794,2302.7749,24.5106)) // Checkpoint 37
        {
            SetPlayerCheckpoint(playerid,-521.4971,2428.2092,58.3551,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-521.4971,2428.2092,58.3551)) // Checkpoint 39
        {
            SetPlayerCheckpoint(playerid,-730.0899,2615.9016,67.4429,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-730.0899,2615.9016,67.4429)) // Checkpoint 40
        {
            SetPlayerCheckpoint(playerid,-696.9487,2684.7356,56.3441,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-696.9487,2684.7356,56.3441)) // Checkpoint 41
        {
            SetPlayerCheckpoint(playerid,-761.1194,2696.5459,47.9677,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-761.1194,2696.5459,47.9677)) // Checkpoint 42
        {
            SetPlayerCheckpoint(playerid,-775.5515,2720.2551,45.0647,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-775.5515,2720.2551,45.0647)) // Checkpoint 43
        {
            SetPlayerCheckpoint(playerid,-1049.2953,2709.6973,45.6144,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1049.2953,2709.6973,45.6144)) // Checkpoint 44
        {
            SetPlayerCheckpoint(playerid,-1270.4656,2671.1289,48.4106,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1270.4656,2671.1289,48.4106)) // Checkpoint 45
        {
            SetPlayerCheckpoint(playerid,-1267.1816,2697.7236,49.8040,5);
        }
        else if(IsPlayerInRangeOfPoint(playerid,5,-1267.1816,2697.7236,49.8040)) // Checkpoint 46 aka end
        {
            new Float:Health1;
            GetVehicleHealth(GetPlayerVehicleID(playerid), Health1);
            if(Health1 > 900)
            {
                DisablePlayerCheckpoint(playerid);
                PlayerStat[playerid][CarLic] = 1;
                LicenseTest[playerid] = 0;
                CP[playerid] = 0;
                SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                SendClientMessage(playerid, COLOR_DMV, "* Driving Center: You have successfully passed the test and received your license.");
            }
            else
            {
                DisablePlayerCheckpoint(playerid);
                LicenseTest[playerid] = 0;
                CP[playerid] = 0;
                SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                SendClientMessage(playerid, COLOR_DMV, "* Driving Center: You have critically damaged your vehicle, therefore you failed the test.");
            }
        }
        else DisablePlayerCheckpoint(playerid);
        }     //trucker job
    if(Removalist[playerid] == 1))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 850.6198, -1483.6526, 13.3298)) && if(IsPlayerInVehicle(playerid, 515))
        {
            SendClientMessage(playerid, ORANGE, "You have delivered the goods and received $500!");
            GivePlayerMoney(playerid, 500);
        }
        else
        {
            SendClientMessage(playerid, GREY, "You are not in the delivery vehicle!");
        }
    }
    return 1;
}
try this
Reply
#3

Thanks, but

pawn Код:
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2726) : error 029: invalid expression, assumed zero
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2728) : error 029: invalid expression, assumed zero
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2728) : warning 215: expression has no effect
C:\Users\cbrickell\Desktop\PWN\gamemodes\EGRP.pwn(2728) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
On these lines:

pawn Код:
if(Removalist[playerid] == 1)) //first error

if(IsPlayerInRangeOfPoint(playerid, 3, 850.6198, -1483.6526, 13.3298)) && if(IsPlayerInVehicle(playerid, 515)) // second error, 3rd error and a warning
Reply
#4

pawn Код:
if(Removalist[playerid] == 1)
if(IsPlayerInRangeOfPoint(playerid, 3, 850.6198, -1483.6526, 13.3298) && IsPlayerInVehicle(playerid, 515))
Reply
#5

EDIT: Too slow and exactly the same as PMH's.
Reply
#6

Thank yous!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)