[POMOC] Nece da mi complie

Započeo [CH]Ivan_Lukic, Mart 16, 2011, 18:34:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTA:RP
Detaljan opis problema:ubacivo sam poso za farmera prvo sam oranje i bilo je sve dobro i radilo onda sam iso vrsenje e ubacim komandu compliem bezz erora ubacim cp-ove nece da complie...
Dio skripte:eto i oranje i vrsenje


if(strcmp(cmd, "/oranje", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pOranje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano oranje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 18)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Aktivirao si oranje");
       PlayerInfo[playerid][pOranje] = 1;//---- tu stavite vrijednos 1 za Oranje za toga igraca
             SetPlayerCheckpoint(playerid, -375.7691,-1380.9330,22.5916,2.0);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao farmera!");
                return 1;
        }
}
return 1;
}

if(strcmp(cmd, "/vrsenje", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pVrsenje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano vrsenje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 18)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Aktivirao si vrsenje");
       PlayerInfo[playerid][pVrsenje] = 1;//---- tu stavite vrijednos 1 za Oranje za toga igraca
             SetPlayerCheckpoint(playerid, -329.7193,-1428.6222,15.1619,2.0);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao farmera!");
                return 1;
        }
}
return 1;
}




ovo su cp-ovi


public OnPlayerEnterCheckpoint(playerid)
{
new string[128];
new string2[128];
new name[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pOranje] > 0)
    {
//--------oranje------------------------------------------------------------------------------------------------------
        if(PlayerToPoint(2.0, playerid,-375.7691,-1380.9330,22.5916))//cp1
        {
            if(PlayerInfo[playerid][pOranje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)//tu stavite id od vozila za Oranje
      {
                           PlayerInfo[playerid][pOranje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,-375.7691,-1380.9330,22.5916,2.0);//
  }
            }
        }
        if(PlayerToPoint(2.0, playerid,-375.7691,-1380.9330,22.5916))//cp2
        {
            if(PlayerInfo[playerid][pOranje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 3;//
                           SetPlayerCheckpoint(playerid,-556.4861,-1432.4694,11.3274,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-556.4861,-1432.4694,11.3274))//cp3
        {
            if(PlayerInfo[playerid][pOranje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 4;//
                           SetPlayerCheckpoint(playerid,-567.3028,-1425.5896,12.0238,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-567.3028,-1425.5896,12.0238))//cp4
        {
            if(PlayerInfo[playerid][pOranje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 5;//
                           SetPlayerCheckpoint(playerid,-371.2881,-1366.7815,22.1578,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-371.2881,-1366.7815,22.1578))//cp5
        {
            if(PlayerInfo[playerid][pOranje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 6;//
                           SetPlayerCheckpoint(playerid,-368.9282,-1359.8644,21.7455,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-368.9282,-1359.8644,21.7455))//cp6
        {
            if(PlayerInfo[playerid][pOranje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 7;//
                           SetPlayerCheckpoint(playerid,-584.2836,-1409.7428,13.7400,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-584.2836,-1409.7428,13.7400))//cp7
        {
            if(PlayerInfo[playerid][pOranje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 8;//
                           SetPlayerCheckpoint(playerid,-586.2586,-1398.9856,14.2452,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-586.2586,-1398.9856,14.2452))//cp8
        {
            if(PlayerInfo[playerid][pOranje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 9;//
                           SetPlayerCheckpoint(playerid,-371.0724,-1351.1901,22.0696,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-371.0724,-1351.1901,22.0696))//cp9
        {
            if(PlayerInfo[playerid][pOranje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 10;//
                           SetPlayerCheckpoint(playerid,-367.5711,-1339.7734,22.5469,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-367.5711,-1339.7734,22.5469))//cp10
        {
            if(PlayerInfo[playerid][pOranje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 11;//
                           SetPlayerCheckpoint(playerid,-588.5048,-1367.6445,17.6652,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-588.5048,-1367.6445,17.6652))//cp11
        {
            if(PlayerInfo[playerid][pOranje] == 11)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 12;//
                           SetPlayerCheckpoint(playerid,-588.1562,-1355.2567,19.8451,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-588.1562,-1355.2567,19.8451))//cp12
        {
            if(PlayerInfo[playerid][pOranje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 13;//
                           SetPlayerCheckpoint(playerid,-356.2765,-1310.5151,23.3992,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-356.2765,-1310.5151,23.3992))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 14;//
                           SetPlayerCheckpoint(playerid,-354.4057,-1300.6068,23.9525,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-354.4057,-1300.6068,23.9525))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 15;
                           SetPlayerCheckpoint(playerid,-584.1732,-1315.0394,22.6388,2.0);
  }
            }
}
if(PlayerToPoint(2.0, playerid,-584.1732,-1315.0394,22.6388))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 15)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 16;
                           SetPlayerCheckpoint(playerid,-586.3209,-1304.3593,22.3907,2.0);//
  }
            }
}

       if(PlayerToPoint(2.0, playerid,-586.3209,-1304.3593,22.3907))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 16)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 17;
                           SetPlayerCheckpoint(playerid,-344.5306,-1266.8417,26.0865,2.0);//
  }
            }
}

if(PlayerToPoint(2.0, playerid,-344.5306,-1266.8417,26.0865))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 17)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 18;
                           SetPlayerCheckpoint(playerid,-584.6069,-1290.4395,22.3432,2.0);//
  }
            }
}

        if(PlayerToPoint(2.0, playerid,-584.6069,-1290.4395,22.3432))//cp n-zi
        {
            if(PlayerInfo[playerid][pOranje] == 18)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"*Oranje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 100);
                           SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
  }
            }
}
}
//_____________________________________________________________________________________________________________________________
//--------vrsenje-----------------------------------------------------------------------------------------------------------------------
        if(PlayerToPoint(2.0, playerid,-329.7193,-1428.6222,15.1619))//cp1
        {
            if(PlayerInfo[playerid][pVrsenje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)//tu stavite id od vozila za Oranje
      {
                           PlayerInfo[playerid][pVrsenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,-329.7193,-1428.6222,15.1619,2.0);//
  }
            }
        }
        if(PlayerToPoint(2.0, playerid,-329.7193,-1428.6222,15.1619))//cp2
        {
            if(PlayerInfo[playerid][pVrsenje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 3;//
                           SetPlayerCheckpoint(playerid,-169.2398,-1411.0570,3.0359,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-169.2398,-1411.0570,3.0359))//cp3
        {
            if(PlayerInfo[playerid][pVrsenje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 4;//
                           SetPlayerCheckpoint(playerid,-168.1437,-1402.5940,3.0315,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-168.1437,-1402.5940,3.0315))//cp4
        {
            if(PlayerInfo[playerid][pVrsenje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 5;//
                           SetPlayerCheckpoint(playerid,-328.9240,-1419.6205,14.6124,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-328.9240,-1419.6205,14.6124))//cp5
        {
            if(PlayerInfo[playerid][pVrsenje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 6;//
                           SetPlayerCheckpoint(playerid,-172.9273,-1387.7710,3.7388,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-172.9273,-1387.7710,3.7388))//cp6
        {
            if(PlayerInfo[playerid][pVrsenje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 7;//
                           SetPlayerCheckpoint(playerid,-172.8268,-1376.1042,3.7023,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-172.8268,-1376.1042,3.7023))//cp7
        {
            if(PlayerInfo[playerid][pVrsenje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 8;//
                           SetPlayerCheckpoint(playerid,-326.0595,-1397.0121,13.1271,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-326.0595,-1397.0121,13.1271))//cp8
        {
            if(PlayerInfo[playerid][pVrsenje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 9;//
                           SetPlayerCheckpoint(playerid,-181.0747,-1366.1876,4.1819,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-181.0747,-1366.1876,4.1819))//cp9
        {
            if(PlayerInfo[playerid][pVrsenje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 10;//
                           SetPlayerCheckpoint(playerid,-181.6843,-1354.0406,4.1481,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-181.6843,-1354.0406,4.1481))//cp10
        {
            if(PlayerInfo[playerid][pVrsenje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 11;//
                           SetPlayerCheckpoint(playerid,-321.8862,-1370.2655,10.4226,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-321.8862,-1370.2655,10.4226))//cp11
        {
            if(PlayerInfo[playerid][pVrsenje] == 11)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 12;//
                           SetPlayerCheckpoint(playerid,-322.5231,-1364.5323,10.2068,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-322.5231,-1364.5323,10.2068))//cp12
        {
            if(PlayerInfo[playerid][pVrsenje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 13;//
                           SetPlayerCheckpoint(playerid,-172.7998,-1342.7952,3.6124,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-172.7998,-1342.7952,3.6124))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 14;//
                           SetPlayerCheckpoint(playerid,-170.1160,-1330.2721,3.4885,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-170.1160,-1330.2721,3.4885))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 15;
                           SetPlayerCheckpoint(playerid,-319.4049,-1347.6866,9.2291,2.0);
  }
            }
}
if(PlayerToPoint(2.0, playerid,-319.4049,-1347.6866,9.2291))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 15)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 16;
                           SetPlayerCheckpoint(playerid,-323.3522,-1330.8037,9.4394,2.0);//
  }
            }
}

       if(PlayerToPoint(2.0, playerid,-323.3522,-1330.8037,9.4394))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 16)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 17;
                           SetPlayerCheckpoint(playerid,-168.9294,-1318.8102,4.3225,2.0);//
  }
            }
}

if(PlayerToPoint(2.0, playerid,-168.9294,-1318.8102,4.3225))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 17)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 18;
                           SetPlayerCheckpoint(playerid,-170.0475,-1307.5068,4.7551,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-170.0475,-1307.5068,4.7551))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 18)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 19;
                           SetPlayerCheckpoint(playerid,-322.5336,-1318.1709,9.3948,2.0);//
  }
            }
}

        if(PlayerToPoint(2.0, playerid,-322.5336,-1318.1709,9.3948))//cp n-zi
        {
            if(PlayerInfo[playerid][pVrsenje] == 19)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"*Vrsenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 100);
                           SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
  }
            }
}
}
//_____________________

Neke slike/video za lakse dobivanje pomoci(neobavezno)

dragan12

Stavi return 1; na kraju
Ovako msm kod zadnjeg cp da stavis
            if(PlayerInfo[playerid][pVrsenje] == 19)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"*Vrsenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 100);
                           SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
  }
            }
}
return 1;
}
//_____________________

nepomaze to jer to nema ni oranje a ardi samo kad ubacim  jos ovo onda nece complie

dragan12

Evo ja sam testirao stavi ovako cp
new string[128];
new string2[128];
new name[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pOranje] > 0)
    {
//--------oranje------------------------------------------------------------------------------------------------------
        if(PlayerToPoint(2.0, playerid,-375.7691,-1380.9330,22.5916))//cp1
        {
            if(PlayerInfo[playerid][pOranje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)//tu stavite id od vozila za Oranje
      {
                           PlayerInfo[playerid][pOranje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,-375.7691,-1380.9330,22.5916,2.0);//
  }
            }
        }
        if(PlayerToPoint(2.0, playerid,-375.7691,-1380.9330,22.5916))//cp2
        {
            if(PlayerInfo[playerid][pOranje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 3;//
                           SetPlayerCheckpoint(playerid,-556.4861,-1432.4694,11.3274,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-556.4861,-1432.4694,11.3274))//cp3
        {
            if(PlayerInfo[playerid][pOranje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 4;//
                           SetPlayerCheckpoint(playerid,-567.3028,-1425.5896,12.0238,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-567.3028,-1425.5896,12.0238))//cp4
        {
            if(PlayerInfo[playerid][pOranje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 5;//
                           SetPlayerCheckpoint(playerid,-371.2881,-1366.7815,22.1578,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-371.2881,-1366.7815,22.1578))//cp5
        {
            if(PlayerInfo[playerid][pOranje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 6;//
                           SetPlayerCheckpoint(playerid,-368.9282,-1359.8644,21.7455,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-368.9282,-1359.8644,21.7455))//cp6
        {
            if(PlayerInfo[playerid][pOranje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 7;//
                           SetPlayerCheckpoint(playerid,-584.2836,-1409.7428,13.7400,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-584.2836,-1409.7428,13.7400))//cp7
        {
            if(PlayerInfo[playerid][pOranje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 8;//
                           SetPlayerCheckpoint(playerid,-586.2586,-1398.9856,14.2452,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-586.2586,-1398.9856,14.2452))//cp8
        {
            if(PlayerInfo[playerid][pOranje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 9;//
                           SetPlayerCheckpoint(playerid,-371.0724,-1351.1901,22.0696,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-371.0724,-1351.1901,22.0696))//cp9
        {
            if(PlayerInfo[playerid][pOranje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 10;//
                           SetPlayerCheckpoint(playerid,-367.5711,-1339.7734,22.5469,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-367.5711,-1339.7734,22.5469))//cp10
        {
            if(PlayerInfo[playerid][pOranje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 11;//
                           SetPlayerCheckpoint(playerid,-588.5048,-1367.6445,17.6652,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-588.5048,-1367.6445,17.6652))//cp11
        {
            if(PlayerInfo[playerid][pOranje] == 11)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 12;//
                           SetPlayerCheckpoint(playerid,-588.1562,-1355.2567,19.8451,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-588.1562,-1355.2567,19.8451))//cp12
        {
            if(PlayerInfo[playerid][pOranje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 13;//
                           SetPlayerCheckpoint(playerid,-356.2765,-1310.5151,23.3992,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-356.2765,-1310.5151,23.3992))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 14;//
                           SetPlayerCheckpoint(playerid,-354.4057,-1300.6068,23.9525,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-354.4057,-1300.6068,23.9525))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 15;
                           SetPlayerCheckpoint(playerid,-584.1732,-1315.0394,22.6388,2.0);
  }
            }
}
if(PlayerToPoint(2.0, playerid,-584.1732,-1315.0394,22.6388))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 15)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 16;
                           SetPlayerCheckpoint(playerid,-586.3209,-1304.3593,22.3907,2.0);//
  }
            }
}

       if(PlayerToPoint(2.0, playerid,-586.3209,-1304.3593,22.3907))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 16)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 17;
                           SetPlayerCheckpoint(playerid,-344.5306,-1266.8417,26.0865,2.0);//
  }
            }
}

if(PlayerToPoint(2.0, playerid,-344.5306,-1266.8417,26.0865))//cp13
        {
            if(PlayerInfo[playerid][pOranje] == 17)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 18;
                           SetPlayerCheckpoint(playerid,-584.6069,-1290.4395,22.3432,2.0);//
  }
            }
}

        if(PlayerToPoint(2.0, playerid,-584.6069,-1290.4395,22.3432))//cp n-zi
        {
            if(PlayerInfo[playerid][pOranje] == 18)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 12)
      {
                           PlayerInfo[playerid][pOranje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"*Oranje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 100);
                           SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
  }
            }
}
return 1;
}
    if(PlayerInfo[playerid][pVrsenje] > 0)
    {_______________________________________________________________________________________________________________________
//--------vrsenje-----------------------------------------------------------------------------------------------------------------------
        if(PlayerToPoint(2.0, playerid,-329.7193,-1428.6222,15.1619))//cp1
        {
            if(PlayerInfo[playerid][pVrsenje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)//tu stavite id od vozila za Oranje
      {
                           PlayerInfo[playerid][pVrsenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,-329.7193,-1428.6222,15.1619,2.0);//
  }
            }
        }
        if(PlayerToPoint(2.0, playerid,-329.7193,-1428.6222,15.1619))//cp2
        {
            if(PlayerInfo[playerid][pVrsenje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 3;//
                           SetPlayerCheckpoint(playerid,-169.2398,-1411.0570,3.0359,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-169.2398,-1411.0570,3.0359))//cp3
        {
            if(PlayerInfo[playerid][pVrsenje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 4;//
                           SetPlayerCheckpoint(playerid,-168.1437,-1402.5940,3.0315,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-168.1437,-1402.5940,3.0315))//cp4
        {
            if(PlayerInfo[playerid][pVrsenje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 5;//
                           SetPlayerCheckpoint(playerid,-328.9240,-1419.6205,14.6124,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-328.9240,-1419.6205,14.6124))//cp5
        {
            if(PlayerInfo[playerid][pVrsenje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 6;//
                           SetPlayerCheckpoint(playerid,-172.9273,-1387.7710,3.7388,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-172.9273,-1387.7710,3.7388))//cp6
        {
            if(PlayerInfo[playerid][pVrsenje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 7;//
                           SetPlayerCheckpoint(playerid,-172.8268,-1376.1042,3.7023,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-172.8268,-1376.1042,3.7023))//cp7
        {
            if(PlayerInfo[playerid][pVrsenje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 8;//
                           SetPlayerCheckpoint(playerid,-326.0595,-1397.0121,13.1271,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-326.0595,-1397.0121,13.1271))//cp8
        {
            if(PlayerInfo[playerid][pVrsenje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 9;//
                           SetPlayerCheckpoint(playerid,-181.0747,-1366.1876,4.1819,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-181.0747,-1366.1876,4.1819))//cp9
        {
            if(PlayerInfo[playerid][pVrsenje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 10;//
                           SetPlayerCheckpoint(playerid,-181.6843,-1354.0406,4.1481,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-181.6843,-1354.0406,4.1481))//cp10
        {
            if(PlayerInfo[playerid][pVrsenje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 11;//
                           SetPlayerCheckpoint(playerid,-321.8862,-1370.2655,10.4226,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-321.8862,-1370.2655,10.4226))//cp11
        {
            if(PlayerInfo[playerid][pVrsenje] == 11)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 12;//
                           SetPlayerCheckpoint(playerid,-322.5231,-1364.5323,10.2068,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-322.5231,-1364.5323,10.2068))//cp12
        {
            if(PlayerInfo[playerid][pVrsenje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 13;//
                           SetPlayerCheckpoint(playerid,-172.7998,-1342.7952,3.6124,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-172.7998,-1342.7952,3.6124))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 14;//
                           SetPlayerCheckpoint(playerid,-170.1160,-1330.2721,3.4885,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-170.1160,-1330.2721,3.4885))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 15;
                           SetPlayerCheckpoint(playerid,-319.4049,-1347.6866,9.2291,2.0);
  }
            }
}
if(PlayerToPoint(2.0, playerid,-319.4049,-1347.6866,9.2291))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 15)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 16;
                           SetPlayerCheckpoint(playerid,-323.3522,-1330.8037,9.4394,2.0);//
  }
            }
}

       if(PlayerToPoint(2.0, playerid,-323.3522,-1330.8037,9.4394))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 16)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 17;
                           SetPlayerCheckpoint(playerid,-168.9294,-1318.8102,4.3225,2.0);//
  }
            }
}

if(PlayerToPoint(2.0, playerid,-168.9294,-1318.8102,4.3225))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 17)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 18;
                           SetPlayerCheckpoint(playerid,-170.0475,-1307.5068,4.7551,2.0);//
  }
            }
}
if(PlayerToPoint(2.0, playerid,-170.0475,-1307.5068,4.7551))//cp13
        {
            if(PlayerInfo[playerid][pVrsenje] == 18)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 19;
                           SetPlayerCheckpoint(playerid,-322.5336,-1318.1709,9.3948,2.0);//
  }
            }
}

        if(PlayerToPoint(2.0, playerid,-322.5336,-1318.1709,9.3948))//cp n-zi
        {
            if(PlayerInfo[playerid][pVrsenje] == 19)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 13)
      {
                           PlayerInfo[playerid][pVrsenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"*Vrsenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 100);
                           SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
  }
            }
}
return 1;
}
//_____________________

Rjesio sam prije ali svjedno Hvala zabrovaio sam rec da je rjeseno...moze LOCK