nema errora

Započeo Ante_Dracar aka Lopa, Jun 14, 2010, 20:40:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ovako zanima me > napravio sam novo /rentcar vozilo i samo kad udjem u njega prikazemi se ona obavjest za rentat itd,i izbaci me automatski pa ako mi mozete pomoc

Daj nam komandu nemožemo ti ovako ništa

evo vamo san ja nesto kemija...

if(strcmp(cmd, "/rentcar", true) == 0)
   {
        if(IsPlayerConnected(playerid))
      {
         if(GetPlayerVehicleID(playerid) >= 72 && GetPlayerVehicleID(playerid) <= 77)
         {
            new hirefee = HireCost(GetPlayerVehicleID(playerid));
            if(GetPlayerVehicleID(playerid) >= 72 && GetPlayerVehicleID(playerid) <= 74)
            {
               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) >= 75 && GetPlayerVehicleID(playerid) <= 77)
            {
               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;
   }
Poslednja Izmena: Jun 14, 2010, 22:06:24 POSLE PODNE od lopalopa