nemam blage

Započeo Ante_Dracar aka Lopa, Jun 15, 2010, 08:05:07 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

ovako ljudi treba mi pomoc oko /rentcar komande ne ide mi ba najbolje,stavio sam nova 4 rentcar vozila kad udjem u njih samo stojin freezan i nemogu se pomaknit i ne mogu ga rentat....hvala....



   if(strcmp(cmd, "/rentcar", true) == 0)
   {
        if(IsPlayerConnected(playerid))
      {
         if(GetPlayerVehicleID(playerid) >= 72 && GetPlayerVehicleID(playerid) <= 77)
         {
            new hirefee = HireCost(GetPlayerVehicleID(playerid));
            if(GetPlayerVehicleID(playerid) >= 224 && GetPlayerVehicleID(playerid) <= 227)
            {
               if(SBizzInfo[0][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Prodano", 5000, 1);
                  return 1;
               }
               if(PlayerInfo[playerid][pPbiskey] == 0)
               {
                  GameTextForPlayer(playerid, "~w~Nema zaduzenih sefova", 5000, 3);
                  TogglePlayerControllable(playerid, 1);
                  return 1;
               }
               if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "   Nemate toliko novaca!");
                  return 1;
               }
               GivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
               SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
               ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
               SBizzInfo[0][sbProducts]--;
            }
            if(GetPlayerVehicleID(playerid) >= 224 && GetPlayerVehicleID(playerid) <= 227)
            {
               if(SBizzInfo[1][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Prodano", 5000, 1);
                  return 1;
               }
               if(PlayerInfo[playerid][pPbiskey] == 1)
               {
                  GameTextForPlayer(playerid, "~w~Nema zaduzenih sefova", 5000, 3);
                  TogglePlayerControllable(playerid, 1);
                  return 1;
               }
               if (GetPlayerMoney(playerid) <  SBizzInfo[1][sbEntranceCost])
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "   Nemate toliko novaca !");
                  return 1;
               }
               GivePlayerMoney(playerid,-SBizzInfo[1][sbEntranceCost]);
               SBizzInfo[1][sbTill] += SBizzInfo[1][sbEntranceCost];
               ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);
               SBizzInfo[1][sbProducts]--;
            }
            if(HireCar[playerid] != 299)
            {
               gCarLock[HireCar[playerid]] = 0;
               UnLockCar(HireCar[playerid]);
            }
            HireCar[playerid] = GetPlayerVehicleID(playerid);
            OnPropUpdate();
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            format(string, sizeof(string), "~w~Nadamo se da cete uzivati ~n~koristite ove aute~n~Za zakljucavanje i otkljucavanje auta koristite~n~type ~g~/lock~n~~w~molimo vozite sigurno",hirefee);
            TogglePlayerControllable(playerid, 1);
            GameTextForPlayer(playerid, string, 5000, 3);
         }
      }
      return 1;
   }






i vamo sam isto nesto dira stavlja id auta...




if(newcar==110||newcar==111||newcar==112||newcar==113||newcar==114||newcar==115)
      {
          if(PlayerKarting[playerid] != 1)
          {
              RemovePlayerFromVehicle(playerid);
          }
      }
      if(newcar >= 72 && newcar <= 74)
      {
         if (HireCar[playerid] != newcar)
         {
            format(string, sizeof(string), "~w~Mozete iznajmiti ovaj auto~n~Cijena:~g~$%d~n~~w~Za najam upisite ~g~/rentcar~w~~n~da izadete van upisite ~r~/exit",SBizzInfo[0][sbEntranceCost]);
            TogglePlayerControllable(playerid, 0);
            GameTextForPlayer(playerid, string, 5000, 3);
         }
      }
      if(newcar >= 75 && newcar <= 77)
      {
         if (HireCar[playerid] != newcar)
         {
            format(string, sizeof(string), "~w~Mozete iznajmiti ovaj auto~n~Cijena:~g~$%d~n~~w~Za najam upisite ~g~/rentcar~w~~n~da izadete van upisite ~r~/exit",SBizzInfo[1][sbEntranceCost]);
            TogglePlayerControllable(playerid, 0);
            GameTextForPlayer(playerid, string, 5000, 3);
         }
      }
      if(newcar >= 224 && newcar <= 227)
      {
         if (HireCar[playerid] != newcar)
         {
            format(string, sizeof(string), "~w~Mozete iznajmiti ovaj auto~n~Cijena:~g~$%d~n~~w~Za najam upisite ~g~/rentcar~w~~n~da izadete van upisite ~r~/exit",SBizzInfo[1][sbEntranceCost]);
            TogglePlayerControllable(playerid, 0);
            GameTextForPlayer(playerid, string, 5000, 3);
         }
      }



ovo gori di pise                if(newcar==110||newcar==111||newcar==112||newcar==113||newcar==114||newcar==115)
nisam stavlja nove id-ove auta razlog je kad udjem izbaci me

samo tu dodaj IDeve novih autiju koje si dodao...

if(GetPlayerVehicleID(playerid) >= 72 && GetPlayerVehicleID(playerid) <= 77)

pokusao sam,ali i dalje ostane freezan u autu i ne mogu ga rentat