[Pomoc]warning

Započeo Delicâ„¢, April 27, 2017, 22:28:21 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:UP
Detaljan opis problema:znaci izbacuje mi warning lost identitation(nezz jel se tako pise) i nigdje da nadjem sta treba da poravnam
Dio skripte: [pawn]   new vozilo = GetPlayerVehicleID(playerid);
    if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
   {
      new string[128];
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[0][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[0][playerid]);
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[1][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[1][playerid]);
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[2][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[2][playerid]);
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[3][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[3][playerid]), format(string, sizeof(string), "FUEL %d", Fuel[GetPlayerVehicleID(playerid)]), PlayerTextDrawSetString(playerid, BRZINOMER[3][playerid], string);
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[4][playerid]);
      else if(newstate == PLAYER_STATE_DRIVER)
      {
          PlayerTextDrawShow(playerid, BRZINOMER[4][playerid]);
          new engine, lights, alarm, doors, bonnet, boot, objective;
         GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
          if(engine == 0 || engine == -1)
         {
            format(string, sizeof(string), "_");
               PlayerTextDrawSetString(playerid,BRZINOMER[4][playerid], string);
         }
         else if(engine == 1)
         {
             format(string, sizeof(string), "_");
               PlayerTextDrawSetString(playerid,BRZINOMER[4][playerid], string);
         }
      }
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[5][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[5][playerid]);
      if(oldstate-1 && newstate) PlayerTextDrawHide(playerid, BRZINOMER[6][playerid]); else if(newstate == PLAYER_STATE_DRIVER) PlayerTextDrawShow(playerid, BRZINOMER[6][playerid]);
      }
      if(newstate == PLAYER_STATE_DRIVER) // ovde mi pokazuje da je warning
      {
         for(new i = 0; i < sizeof(VoziloInfo); i++)
          {
            if(VoziloInfo[vID] == vozilo)
            {
                new cijena = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
               if(VoziloInfo[vImaVlasnika] == 0)
               {
                   if(PlayerInfo[playerid][pAdmin] == 6) SCMF(playerid,-1,"[CORPUS GAMING] "PPLAVA"Ulazite u vozilo ID: %d!",i);
                  SCM(playerid,-1,""PPLAVA"Polovan auto na prodaju | /kupiauto | /izlaz");
                  SCMF(playerid,-1,""PPLAVA"Cijena: "BELA"%d$ | "PPLAVA"Model: "BELA"%s",AutoSalon[cijena][1]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
                  UsaoAutoProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
                  return 1;
               }
            }
         }
         for(new i = 0; i < sizeof(MotorInfo); i++)
          {
            if(MotorInfo[mID] == vozilo)
            {
               if(MotorInfo[mImaVlasnika] == 0)
               {
                   if(PlayerInfo[playerid][pAdmin] == 6) SCMF(playerid,-1,"[CORPUS GAMING] "PPLAVA"Ulazite u motor ID: %d!",i);
                  SCM(playerid,-1,""PPLAVA"Polovan motor na prodaju | /kupimotor | /izlaz");
                  SCMF(playerid,-1,""PPLAVA"Cijena: "BELA"%d$ | "PPLAVA"Model: "BELA"%s",MotorInfo[mCijena]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
                  UsaoMotorProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
                  return 1;
               }
            }
         }
         for(new i = 0; i < sizeof(AvionInfo); i++)
          {
            if(AvionInfo[avID] == vozilo)
            {
               if(AvionInfo[avImaVlasnika] == 0)
               {
                   if(PlayerInfo[playerid][pAdmin] == 6) SCMF(playerid,-1,"[CORPUS GAMING] "PPLAVA"Ulazite u letjelicu ID: %d!",i);
                  SCM(playerid,-1,""PPLAVA"Polovana letjelica na prodaju | /kupiletjelicu | /izlaz");
                  SCMF(playerid,-1,""PPLAVA"Cijena: "BELA"%d$ | "PPLAVA"Model: "BELA"%s",AvionInfo[avCijena]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
                  UsaoAvionProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
                  return 1;
               }
            }
         }
         for(new i = 0; i < sizeof(PlovilaInfo); i++)
          {
            if(PlovilaInfo[plID] == vozilo)
            {
               if(PlovilaInfo[plImaVlasnika] == 0)
               {
                   if(PlayerInfo[playerid][pAdmin] == 6) SCMF(playerid,-1,"[CORPUS GAMING] "PPLAVA"Ulazite u plovilo ID: %d!",i);
                  SCM(playerid,-1,""PPLAVA"Polovno plovilo na prodaju | /kupiplovilo | /izlaz");
                  SCMF(playerid,-1,""PPLAVA"Cijena: "BELA"%d$ | "PPLAVA"Model: "BELA"%s",PlovilaInfo[plCijena]/2, ImenaVozila[GetVehicleModel(vozilo) - 400]);
                  UsaoPloviloProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
                  return 1;
               }
            }
         }
         if(vozilo >= vkarting[0] && vozilo <= vkarting[6])
         {
             if(Zeton[playerid] == 0)
             {
               SCM(playerid,-1,"CG | "PPLAVA"Morate kupiti zeton!"); RemovePlayerFromVehicle(playerid);
               return 1;
             }
             else if(Zeton[playerid] == 1)
            {
               SCM(playerid,-1,"[CORPUS GAMING] "PPLAVA"Srecno u voznji, zeton traje 4 minuta!");
               zeton[playerid] = SetTimerEx("KartingZeton", 240000, false, "i", playerid);
            }
         }
         if(vozilo >= askolavozila[0] && vozilo <= askolavozila[7])
         {
            if(Poligon[playerid] == 0)
            {
               SCM(playerid, -1, ""PPLAVA"[AS]: "PPLAVA"Nemate uplaceno polaganje...");
               RemovePlayerFromVehicle(playerid);
               return 1;
            }
            if(Poligon[playerid] == 1)
            {
               SetPlayerCheckpoint(playerid, 2053.6768,-1930.5248,13.2457, 2.5);
               SCM(playerid, -1, ""PPLAVA"[AS]: "BELA"Krenuli ste sa polaganjem pratite crvene markere!");
            }
         }
         if(MotoRent(vozilo))
         {
             if (Rentano[playerid] != vozilo)
             {
                TogglePlayerControllable(playerid, 0);
               GameTextForPlayer(playerid,"~w~Mozete rentati ovaj motor ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~80$",5000,3);
            }
         }
         if(AutaRent(vozilo))
         {
             if (Rentano[playerid] != vozilo)
             {
                TogglePlayerControllable(playerid, 0);
                GameTextForPlayer(playerid,"~w~Mozete rentati ovo vozilo ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~120$",5000,3);
            }
         }
           if(VoziloJeKamion(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
              if(PlayerInfo[playerid][pKamionDozvola] <= 0)
             {
                 SCM(playerid,-1,""PPLAVA"[CORPUS GAMING]: "PPLAVA"Nemate dozvolu za kamion, kupite je u auto skoli!");
             }
          }
          if(VoziloJeAvion(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
              if(PlayerInfo[playerid][pAvionDozvola] <= 0)
             {
                 SCM(playerid,-1,""PPLAVA"[CORPUS GAMING]: "PPLAVA"Nemate dozvolu za letjelicu, kupite je u auto skoli!");
                 RemovePlayerFromVehicle(playerid);
             }
          }
          if(VoziloJeBrod(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
              if(PlayerInfo[playerid][pBrodDozvola] <= 0)
              {
                  SCM(playerid,-1,""PPLAVA"[CORPUS GAMING]: "PPLAVA"Nemate dozvolu za plovilo, kupite je u auto skoli!");
                  RemovePlayerFromVehicle(playerid);
              }
          }
          if(VoziloJeMotor(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
              if(PlayerInfo[playerid][pMotorDozvola] <= 0)
              {
                  SCM(playerid,-1,""PPLAVA"[CORPUS GAMING]: "PPLAVA"Nemate dozvolu za motor, kupite je u auto skoli!");
              }
          }
          if(!VoziloJeMotor(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeAvion(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeBrod(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeKamion(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
              if(PlayerInfo[playerid][pADozvola] <= 0)
              {
                  SCM(playerid,-1,""PPLAVA"[CORPUS GAMING]: "PPLAVA"Nemate dozvolu za voznju, kupite je u auto skoli!");
              }
          }
          if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
              new engine, lights, alarm, doors, bonnet, boot, objective;
              GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
              SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
          }
          if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
          {
             new engine, lights, alarm, doors, bonnet, boot, objective;
             GetVehicleParamsEx(vozilo, engine, lights, alarm, doors, bonnet, boot, objective);
             if(engine == -1 && !VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
            {
               SetVehicleParamsEx(vozilo, 0, 0, alarm, doors, bonnet, boot, objective);
            }
         }
         if(BusVozila(vozilo))
         {
             if(PlayerInfo[playerid][pPosao] != POSAO_BUSVOZAC)
             {
                 SCM(playerid, -1, ""PPLAVA"[CORPUS GAMING]: "BELA"Niste zaposleni kao bus vozac!");
                 RemovePlayerFromVehicle(playerid);
            }
            else return SCM(playerid, -1, ""PPLAVA"Komande posla: "BELA"/linija /prekiniposao");
         }
         if(DostavljacVozila(vozilo))
         {
             if(PlayerInfo[playerid][pPosao] != POSAO_DOSTAVLJAC)
             {
                 SCM(playerid, -1, ""PPLAVA"[CORPUS GAMING]: "BELA"Niste zaposleni kao dostavljac!");
                 RemovePlayerFromVehicle(playerid);
            }
            else return SCM(playerid, -1, ""PPLAVA"Komande posla: "BELA"/uzmikutiju /utovari /istovari");
         }
         if(TraktorVozila(vozilo))
         {
             if(PlayerInfo[playerid][pPosao] != POSAO_POLJOPRIVREDNIK)
             {
                 SCM(playerid, -1, ""PPLAVA"[CORPUS GAMING]: "BELA"Niste zaposleni kao poljoprivrednik!");
                 RemovePlayerFromVehicle(playerid);
            }
            else return SCM(playerid, -1, ""PPLAVA"Komande posla: "BELA"/oranje /oprema /prekiniposao");
         }
         if(KamionVozila(vozilo))
         {
             if(PlayerInfo[playerid][pPosao] != POSAO_KAMIONDZIJA)
             {
                 SCM(playerid, -1, ""PPLAVA"[CORPUS GAMING]: "BELA"Niste zaposleni kao kamiondzija!");
                 RemovePlayerFromVehicle(playerid);
            }
            else return SCM(playerid, -1, ""PPLAVA"Komande posla: "BELA"/tura /oprema /prekiniposao");
         }
         if(MehanicarVozila(vozilo))
         {
             if(PlayerInfo[playerid][pPosao] != POSAO_MEHANICAR)
             {
                 SCM(playerid, -1, ""CRVENA"[CORPUS GAMING]: "BELA"Niste zaposleni kao mehanicar!");
                 RemovePlayerFromVehicle(playerid);
            }
            else return SCM(playerid, -1, ""SPLAVA"Komande posla: "BELA"CTRL da zakacite/otkacite vozilo | /popravi | /napuni");
         }
      }
//______________________________________________________________________________
      return true;
}[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno):// evo pastebin lakse je nego ovdje pawn ima i jedno i drugo : https://pastebin.com/fpXzDEWv

-Delic Enadin
-15
-11/7




- HTML
- PAWNO Scripring
- JAVA SCRIPT

Kod ti je mnogo nabacan, ne vidi se gde je pocetak a gde kraj neke provere.


Citat: Seiz poslato April 28, 2017, 10:34:37 PRE PODNE
Kod ti je mnogo nabacan, ne vidi se gde je pocetak a gde kraj neke provere.
To ovdje razbaca kod a u pawnu je drugacije ;)

-Delic Enadin
-15
-11/7




- HTML
- PAWNO Scripring
- JAVA SCRIPT

upload kod na pastebin
samo rejv i debele zene


Nije to kod dobro poravnat, ovo stavi na početak i neće ti se javljati

[pawn]#pragma tabsize 0[/pawn]

"They have computers, and they may have other weapons of mass destruction."

Citat: MEDO poslato April 28, 2017, 16:55:38 POSLE PODNE
Nije to kod dobro poravnat, ovo stavi na početak i neće ti se javljati

[pawn]#pragma tabsize 0[/pawn]
E hvala brate radi ja sam se dvoumio dal da to stavim i ti mi poslo i ja stavim i radi :)

-Delic Enadin
-15
-11/7




- HTML
- PAWNO Scripring
- JAVA SCRIPT