Dialog i warning

Započeo Jack_Ass, Jul 02, 2013, 16:56:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta koju koristim:CLRP
Problem:Ne otvara mi dialog,imam definisano sve,ali baca mi warninge loose indentation i ne otvara,imam 6 opcija u dialogu,i prve 4 otvara,a zadnje 2 ne otvara,moze pomoc?

Evo kodova:

if(dialogid == 5014){
                    if(!response) return 1;
        if(response)
{
        if (Carlist[playerid][Typ]!=-1){
        new price = (Buylist[Carlist[playerid][Typ]][Price]/2);
        if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid])) { RemovePlayerFromVehicle(playerid); }
        GivePlayerMoney(playerid, price);
        DestroyVehicle(Carlist[playerid][Carid]);
Carlist[playerid][Typ]=-1; Carlist[playerid][X3]=0.0; Carlist[playerid][Y3]=0.0; Carlist[playerid][Z3]=0.0;
Carlist[playerid][Rotation]=0.0; Carlist[playerid][Status]=0; Carlist[playerid][Lock]=0; Carlist[playerid][Carid]=-1;
Carlist[playerid][Color1]=-1; Carlist[playerid][Color2]=-1; Carlist[playerid][mod1]=-1; Carlist[playerid][mod2]=-1;
Carlist[playerid][mod3]=-1; Carlist[playerid][mod4]=-1; Carlist[playerid][mod5]=-1; Carlist[playerid][mod6]=-1;
Carlist[playerid][mod7]=-1; Carlist[playerid][mod8]=-1; Carlist[playerid][mod9]=-1; Carlist[playerid][mod10]=-1;
Carlist[playerid][mod11]=-1; Carlist[playerid][mod12]=-1; Carlist[playerid][mod13]=-1; Carlist[playerid][mod14]=-1;
Carlist[playerid][mod15]=-1; Carlist[playerid][mod16]=-1; Carlist[playerid][mod17]=-1; Carlist[playerid][Paintjob]=-1;
SacuvajIgraca(playerid);
VehicleSave(playerid);
format(string,128," Uspjesno si prodao automobil za {FFFFFF}$%i!",price);
SendClientMessage(playerid, YELLOW, string);
        }
        else { SendClientMessage(playerid, COLOR_GREY, "Vi nemate auto!"); }
    }
    }
if(dialogid == 5011)
  {
  if(!response)
  {
  if(Carlist[playerid][Lock] == 0) return SCM(playerid,BELA,""COL_WHITE"["COL_BLUE"WB-INFO"COL_WHITE"]! "COL_RED"Vase vozilo je vec otkljucano!");
  {
  Carlist[playerid][Lock]=0;
          SetVehicleParamsForAll(Carlist[playerid][Carid],0,1);
          SetVehicleParamsForPlayer(Carlist[playerid][Carid],playerid,0,0);
  GameTextForPlayer(playerid, "~w~Vozilo ~g~OTKLJUCANO", 3000, 4);
  return 1;
  }
  }
  if(response)
  {
  if(Carlist[playerid][Lock] == 1) return SCM(playerid,BELA,""COL_WHITE"["COL_BLUE"WB-INFO"COL_WHITE"]! "COL_RED"Vase vozilo je vec zakljucano!");
  {
          Carlist[playerid][Lock]=1;
          SetVehicleParamsForAll(Carlist[playerid][Carid],0,1);
          SetVehicleParamsForPlayer(Carlist[playerid][Carid],playerid,0,0);
  GameTextForPlayer(playerid, "~w~Vozilo ~r~ZAKLJUCANO", 3000, 4);
  }
  }
  }

A baca mi warning kod ovog dijela:

if(dialogid == 5011)


A evo dialoga koji mi ne otavra,mislim otvara samo 4 opcije:

if(dialogid == 5010)
        {
                if(response)
                {
                if(listitem == 0)
                {
               (skriveno)
}
}
if(listitem == 1)
{
  (skriveno) }
}
if(listitem == 3)
    {
   (skriveno)
                }
if(listitem == 4)
                {
(skriveno)
                }
if(listitem == 5)
                {
(skriveno) }
        }
        }
        }


Izvinite sto sam ovo stavio pod skriveno,ali morao sam,jer ovo je ownership koji sam kupio,i sad kad bi stavio ovo nebi bilo fer,mnogi bi samo sebi kopirali i zalijepili,i svi bi dobili dobar ownership dzaba,a ja ga kupio,nije fer,MOze pomoc,pls,ne otvara mi ovo Listitem pod 5 i 6..


pax95

LOCK!
Ne postovanje pravila, kakvo je to osvezavanje? Tema je bila na vrhu i ti osvezvas, a nije proslo 24h.
Pravila: http://balkan-samp.com/forum/index.php?topic=11453.0