[pomoc] oko CP nece da ucita sledece Cp !!


Započeo Aldin Begovic, Jul 27, 2011, 13:14:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: revans role play
Detaljan opis problema:  radio sam po djurinom tutu oko posla "kosac trav" (izgleda da nije predvidjen za Revans mod al ja sam pokusao nesto napravit) e sve sam uradio po uputama sad imam problem sa CP ucita jedan a sledeci nece da prikaze !! dali neko imam iskustva sa ovim i dali je u stanju pomoc osobi kojoj treba pomoc
:
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/


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

                  SendClientMessage(playerid,COLOR_GREEN,"*Aktivirao si kosenje");
                PlayerInfo[playerid][pKosenje] = 1;//---- tu stavite vrijednos 1 za kosenje za toga igraca
                 SetPlayerCheckpoint(playerid,1864.4889,-1249.3776,13.6663,2.0);// tu stavite koordinate prvog cp-a
         }
         else
         {
              SendClientMessage(playerid, COLOR_GREY, "Nemas posao kosaca trave!");
               return 1;
           }
      }
      return 1;
   }
//----------------------------------------------------------------------------------------------------------------------
   if(PlayerInfo[playerid][pKosenje] > 0)
   {
//--------ruta1
       if(SetPlayerCheckpoint(playerid,1864.4889,-1249.3776,13.6663,2.0))//cp1
       {
           if(PlayerInfo[playerid][pKosenje] == 1)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)//tu stavite id od vozila za kosenje
                  {
                          PlayerInfo[playerid][pKosenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                          SetPlayerCheckpoint(playerid,1864.7886,-1193.2822,23.3659,2.0);//
                 }
           }
       }
       if(SetPlayerCheckpoint(playerid,1864.7886,-1193.2822,23.3659,2.0))//cp2
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 3;//
                          SetPlayerCheckpoint(playerid,1878.5416,-1156.5952,23.9088,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,1878.5416,-1156.5952,23.9088,2.0))//cp3
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 4;//
                          SetPlayerCheckpoint(playerid,1930.6313,-1147.0630,24.8303,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,1930.6313,-1147.0630,24.8303,2.0))//cp4
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 5;//
                          SetPlayerCheckpoint(playerid,1969.7714,-1157.2837,20.9643,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,1969.7714,-1157.2837,20.9643,2.0))//cp5
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 6;//
                          SetPlayerCheckpoint(playerid,2004.7880,-1147.5205,24.7107,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,2004.7880,-1147.5205,24.7107,2.0))//cp6
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 7;//
                          SetPlayerCheckpoint(playerid,2052.3052,-1147.0540,23.9317,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,2052.3052,-1147.0540,23.9317,2.0))//cp7
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 8;//
                          SetPlayerCheckpoint(playerid,2056.0249,-1204.4745,23.8858,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,2056.0249,-1204.4745,23.8858,2.0))//cp8
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 9;//
                          SetPlayerCheckpoint(playerid,2055.6821,-1249.3268,23.9113,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,2055.6821,-1249.3268,23.9113,2.0))//cp9
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 10;//
                          SetPlayerCheckpoint(playerid,2014.1779,-1249.7852,23.8505,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,2014.1779,-1249.7852,23.8505,2.0))//cp10
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 11;//
                          SetPlayerCheckpoint(playerid,1976.7894,-1234.7371,20.0469,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,1976.7894,-1234.7371,20.0469,2.0))//cp11
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 12;//
                          SetPlayerCheckpoint(playerid,1946.8344,-1249.6489,19.4926,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,1946.8344,-1249.6489,19.4926,2.0))//cp12
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 13;//
                          SetPlayerCheckpoint(playerid,1909.3494,-1249.2867,14.2117,2.0);//
                 }
           }
      }
      if(SetPlayerCheckpoint(playerid,1909.3494,-1249.2867,14.2117,2.0))//cp13
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 14;//
                          SetPlayerCheckpoint(playerid,1883.2540,-1227.1531,15.8637,2.0);//
                 }
           }
      }
       if(SetPlayerCheckpoint(playerid,1883.2540,-1227.1531,15.8637,2.0))//cp n-zi
       {
           if(PlayerInfo[playerid][pKosenje] == 2)//
           {
                     new Veh = GetPlayerVehicleID(playerid);
                     if(Veh == 612)
                  {
                          PlayerInfo[playerid][pKosenje] = 0;//
                          DisablePlayerCheckpoint(playerid);
                          SendClientMessage(playerid, COLOR_GREEN ,"*kosenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
                     GivePlayerMoney(playerid, 100);
                          SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
                 }
                 return 1;
              }
         }
   }


stavi ovako...

if(PlayerInfo[playerid][pKosenje] > 0)
    {
//--------ruta1
        if(SetPlayerCheckpoint(playerid,1864.4889,-1249.3776,13.6663,2.0))//cp1
        {
            if(PlayerInfo[playerid][pKosenje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)//tu stavite id od vozila za kosenje
                  {
                           PlayerInfo[playerid][pKosenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,1864.7886,-1193.2822,23.3659,2.0);//
                 }
            }
        }
        if(SetPlayerCheckpoint(playerid,1864.7886,-1193.2822,23.3659,2.0))//cp2
        {
            if(PlayerInfo[playerid][pKosenje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 3;//
                           SetPlayerCheckpoint(playerid,1878.5416,-1156.5952,23.9088,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,1878.5416,-1156.5952,23.9088,2.0))//cp3
        {
            if(PlayerInfo[playerid][pKosenje] == 3)// ovde moras stavit 3 a ne 2 jer ide sljdeci cp 4 tako i dole..
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 4;//
                           SetPlayerCheckpoint(playerid,1930.6313,-1147.0630,24.8303,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,1930.6313,-1147.0630,24.8303,2.0))//cp4
        {
            if(PlayerInfo[playerid][pKosenje] == 4)// ovde ide 4 jer je sljdeci 5
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 5;//
                           SetPlayerCheckpoint(playerid,1969.7714,-1157.2837,20.9643,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,1969.7714,-1157.2837,20.9643,2.0))//cp5
        {
            if(PlayerInfo[playerid][pKosenje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 6;//
                           SetPlayerCheckpoint(playerid,2004.7880,-1147.5205,24.7107,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,2004.7880,-1147.5205,24.7107,2.0))//cp6
        {
            if(PlayerInfo[playerid][pKosenje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 7;//
                           SetPlayerCheckpoint(playerid,2052.3052,-1147.0540,23.9317,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,2052.3052,-1147.0540,23.9317,2.0))//cp7
        {
            if(PlayerInfo[playerid][pKosenje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 8;//
                           SetPlayerCheckpoint(playerid,2056.0249,-1204.4745,23.8858,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,2056.0249,-1204.4745,23.8858,2.0))//cp8
        {
            if(PlayerInfo[playerid][pKosenje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 9;//
                           SetPlayerCheckpoint(playerid,2055.6821,-1249.3268,23.9113,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,2055.6821,-1249.3268,23.9113,2.0))//cp9
        {
            if(PlayerInfo[playerid][pKosenje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 10;//
                           SetPlayerCheckpoint(playerid,2014.1779,-1249.7852,23.8505,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,2014.1779,-1249.7852,23.8505,2.0))//cp10
        {
            if(PlayerInfo[playerid][pKosenje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 11;//
                           SetPlayerCheckpoint(playerid,1976.7894,-1234.7371,20.0469,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,1976.7894,-1234.7371,20.0469,2.0))//cp11
        {
            if(PlayerInfo[playerid][pKosenje] == 11)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 12;//
                           SetPlayerCheckpoint(playerid,1946.8344,-1249.6489,19.4926,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,1946.8344,-1249.6489,19.4926,2.0))//cp12
        {
            if(PlayerInfo[playerid][pKosenje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 13;//
                           SetPlayerCheckpoint(playerid,1909.3494,-1249.2867,14.2117,2.0);//
                 }
            }
      }
      if(SetPlayerCheckpoint(playerid,1909.3494,-1249.2867,14.2117,2.0))//cp13
        {
            if(PlayerInfo[playerid][pKosenje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 14;//
                           SetPlayerCheckpoint(playerid,1883.2540,-1227.1531,15.8637,2.0);//
                 }
            }
      }
        if(SetPlayerCheckpoint(playerid,1883.2540,-1227.1531,15.8637,2.0))//cp n-zi
        {
            if(PlayerInfo[playerid][pKosenje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 612)
                  {
                           PlayerInfo[playerid][pKosenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"*kosenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
                     GivePlayerMoney(playerid, 100);
                           SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
                 }
                 return 1;
              }
         }
   }
Vratio sam se ponovo ocekjute novi server...

ok drug ev sam da se rijesim waringa :D
sad radi al samo jedan Cp i odma isplata zasto to ?????
Poslednja Izmena: Jul 27, 2011, 15:50:57 POSLE PODNE od Aldin Begovic

Citat: Aldin Begovic poslato Jul 27, 2011, 15:35:03 POSLE PODNE
ok drug ev sam da se rijesim waringa :D
sad radi al samo jedan Cp i odma isplata zasto to ?????

nerazumijem kako ti ide...
Vratio sam se ponovo ocekjute novi server...

ok sad sam sve rijesio i idu po redu sam imam problem sa waringom
ev poogedaj
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(9075) : warning 217: loose indentation

/---------------------------------------------------------------ovo ispod nije potrebno
                          GivePlayerMoney(playerid, 100);
                          SendClientMessage(playerid, COLOR_GREEN ,"Zarada = 100$");
                 }
                 return 1;
           }
       }
   }
Poslednja Izmena: Jul 27, 2011, 16:32:35 POSLE PODNE od Aldin Begovic

Daj se sam nauci nesto loose indetitation-- znaci da ti nije poravnato dobro pogledas red koji izbaci warning i poravnas .
Postaj cijeli dio komande ili sta si vec ubacio...

ma znam zasto je waring al imam sad drugi problem usao sam u serer sa tim waringom ponovo pokrenuo skriptu otisao f5 i cudo se desilo sad otvorim u downloadu gdje je revans koji nije editovan isto mi pokaze 26 errora otvorim  kopiju moda koju svaki put kopiram kad radim nesto novo u slucajaju da se ne zeznem nesto isto mi ovo izbaci ev pogledajte

C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25000) : error 021: symbol already defined: "strtok"
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25015) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(30118) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(30160) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(30350) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(30707) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(31099) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(32158) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(32354) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(34376) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(47858) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(62214) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(62316) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(62486) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(62722) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(62924) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(63540) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(64648) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(64849) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(65104) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(65322) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(65468) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(65733) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(65775) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(66007) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(67232) : error 047: array sizes do not match, or destination array is too small

///////////////taman sam editovao mod 60 posto i sve ok i ovo sad nemogu rijesim dali neko moze pomoc bio bi mu zahvalan i oduzio bi mu se na bilo koji nacin sto on zahtjeva !! hvala


al cudno sve mi na ovom codu eroori
   x_nr = strtok(cmdtext, idx)
Poslednja Izmena: Jul 28, 2011, 00:54:33 PRE PODNE od Aldin Begovic

symbol already defined strtok -->> vec je definiran..
nadi ga i izbrisi
Vratio sam se ponovo ocekjute novi server...

ok izb sam al nista ne vrijedi rijesio sam ovaj problem bio problem u pawnu sad mi pokuzuje eroor na streameru ?? streamer eroor sam 1 eror i streamer u pitanju??

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'

bolje uradi nesto ovako...
random cp

Kod: c
new Float:KosenjeCP[5][3] = {
{0,0,0}, // x,y,z CP-a
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0}
};



Kod: c
rand = random(sizeof(KosenjeCP));
SetPlayerCheckpoint(playerid, KosenjeCP[rand][0], KosenjeCP[rand][1], KosenjeCP[rand][2], 4.0);

ok mada mi je to malo nejasno i nisam siguran dali cu uradit al ok odo pokusat