[POMOC]neki limit

Započeo BloOm3R!, Decembar 12, 2010, 19:05:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Ljudi evo problema koji sam skuzio kod rentvozila odnosno unrent-a npr ovako ako je na id 100 do 105 vozila za rent sve radi kako treba a ako je veci id za vozila dakle kako meni treba 267 do 284 onda neradi /unrentcar ima li u gf modu kakav limit za to.Hvala


Nije da skupljam postove al druga tema slicna ko ova pa mi nitko nepomogne...



Bas sam sad mislio otvoriti temu, ali vidim da vec postoji. Molim vas pomognite mi, zasto broj vozila visi od 250 nece unrent?

 ???

A da nam date komande "/rentcar" i "/unrentcar", nekoriste svi GF  ;)

pronadzi ovo i probaj promeniti

new gLastCar[301];

jos jednom stavi taj server u potpis i ban ces dobit!

CitatA da nam date komande "/rentcar" i "/unrentcar", nekoriste svi GF
ne nije problem u komandama negdje ima neko ogranicenje sigurno

Citatpronadzi ovo i probaj promeniti

new gLastCar[301];
Hvala ti al nije stavio sam ja ovo 301 na 600 isti je problem hitno mi je pls netko pomogni.

Citat: Bloomer poslato Decembar 13, 2010, 13:46:17 POSLE PODNE
CitatA da nam date komande "/rentcar" i "/unrentcar", nekoriste svi GF
ne nije problem u komandama negdje ima neko ogranicenje sigurno


Da, Da, ogranicenje, mozda ima new maximalaAuta[broj]; ali kako cemo mi to znati ako nam nedas komande -.-'

Citatif(strcmp(cmd, "/rentcar", true) == 0)
   {
        if(IsPlayerConnected(playerid))
      {
         if(GetPlayerVehicleID(playerid) >= 267 && GetPlayerVehicleID(playerid) <= 284)
         {
            new hirefee = HireCost(GetPlayerVehicleID(playerid));
            if(GetPlayerVehicleID(playerid) >= 267 && GetPlayerVehicleID(playerid) <= 284)
            {
               if(SBizzInfo[0][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
                  return 1;
               }
               if(PlayerInfo[playerid][pPbiskey] == 0)
               {
                  GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
                  TogglePlayerControllable(playerid, 1);
                  return 1;
               }
               if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "   You dont have that much cash !");
                  return 1;
               }
               GivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
               SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
               ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
               SBizzInfo[0][sbProducts]--;
            }
            if(GetPlayerVehicleID(playerid) >= 75 && GetPlayerVehicleID(playerid) <= 77)
            {
               if(SBizzInfo[1][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
                  return 1;
               }
               if(PlayerInfo[playerid][pPbiskey] == 1)
               {
                  GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
                  TogglePlayerControllable(playerid, 1);
                  return 1;
               }
               if (GetPlayerMoney(playerid) <  SBizzInfo[1][sbEntranceCost])
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "   You dont have that much cash !");
                  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~We hope you enjoy ~n~the use of this car~n~To lock or unlock your car~n~type ~g~/lock~n~~w~please drive safely",hirefee);
            TogglePlayerControllable(playerid, 1);
            GameTextForPlayer(playerid, string, 5000, 3);
         }
      }
      return 1;
   }
Citatif(strcmp(cmd, "/unrentcar", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
         if(HireCar[playerid] != 299)
         {
            gCarLock[HireCar[playerid]] = 0;
            UnLockCar(HireCar[playerid]);
            HireCar[playerid] = 299;
            GameTextForPlayer(playerid, "~w~You no longer rent a car", 5000, 3);
         }
      }
      return 1;
   }


al to su komande iz obicnog gf-a al ima negdje neku zamku ako je id od 100 do 105 radi dobro a ako je 267 do 284 kako ja trebam onda neradi...



Jel se ovo ne treba poklapati svugde ??
if(GetPlayerVehicleID(playerid) >= 267 && GetPlayerVehicleID(playerid) <= 284)

Kod tebe ima na jednom mjestu
if(GetPlayerVehicleID(playerid) >= 75 && GetPlayerVehicleID(playerid) <= 77)

nemora se jer su inace u gf 2 bizova za rent vozila pa tako da sam za jedan sve napravio i neznam gdje je problem