[Pomoc]/v buy komanda O.o

Započeo Nxidza, Decembar 22, 2011, 16:34:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Raven's edit.
Detaljan opis problema:Radi se o /v buy komandi,na kucnom serveru radi normalno a na hostu nece ...Isprobao sam sve moguce ali opet nece...
Dio skripte:Ako bude trebalo postavicu .
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

else if(strcmp(x_nr,"buy",true) == 0)
           {
               if(IsAnOwnableCar(idcar))
               {
                   if(PlayerInfo[playerid][pLevel] < 2)
                {
                       SendClientMessage(playerid, COLOR_GREY, "Morate biti barem lvl 2 da kupite vozilo!");
                       return 1;
                }
               /*   if(SBizzInfo[1][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
                  return 1;
               }*/
                if(PlayerInfo[playerid][pPcarkey] == 999) { }
                else if(PlayerInfo[playerid][pPcarkey2] == 999) { }
                else if(PlayerInfo[playerid][pPcarkey3] == 999) { }
                else { SendClientMessage(playerid, COLOR_GREY, "   Vec posjedujete 3 vozila"); return 1; }
               if(CarInfo[idcar][cOwned]==1)
               {
                   SendClientMessage(playerid, COLOR_GREY, "Neko vec posjeduje to vozilo");
                   return 1;
               }
               if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
               {
                   if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = idcar; }
                   else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = idcar; }
                   else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = idcar; }
                   else { return 1; }
                  CarInfo[idcar][cOwned] = 1;
                  SaveCarCoords();
                  SaveCarCoords()
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
                  SafeGivePlayerMoney(playerid,-CarInfo[idcar][cValue]);
                  SBizzInfo[1][sbTill] += 5000;
                  SafeGivePlayerMoney(playerid,-30000);
                  ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);
                  SBizzInfo[1][sbProducts]--;
                  GameTextForPlayer(playerid, "~w~Cestitamo~n~Nemojte zaboraviti /v park da ga parkirate!", 5000, 3);
                  SendClientMessage(playerid, COLOR_GRAD2, "Cestitamo vam na novoj kupovini!");
                  SendClientMessage(playerid, COLOR_GRAD2, "Kucajte /vehiclehelp da vidite uputstva!");
                  SendClientMessage(playerid, COLOR_YELLOW2, "Sada mozete upaliti motor !");
                  gEngine[playerid] = 0;
                  SaveCarCoords()
                  SaveCarCoords();
                  engineOn[GetPlayerVehicleID(playerid)] = false;
                  DateProp(playerid);
                  OnPropUpdate();
                  OnPlayerUpdateCustom(playerid);
                  return 1;
               }
               else
               {
                   SendClientMessage(playerid, COLOR_GREY, "  Nemate dovoljno novca kod sebe ! ");
                   return 1;
               }
               }
           }
           else
           {
               SendClientMessage(playerid, COLOR_WHITE, "Podsjetnik: (/v)ehicle [name]");
               SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock(1-3), sell, sellto, color");
               return 1;
           }
       }
       return 1;
   }

Ako imas vec komandu /v dodaj i ovo

Citat: [BU]Lukas poslato Decembar 22, 2011, 16:47:02 POSLE PODNE
else if(strcmp(x_nr,"buy",true) == 0)
           {
               if(IsAnOwnableCar(idcar))
               {
                   if(PlayerInfo[playerid][pLevel] < 2)
                {
                       SendClientMessage(playerid, COLOR_GREY, "Morate biti barem lvl 2 da kupite vozilo!");
                       return 1;
                }
               /*   if(SBizzInfo[1][sbProducts] == 0)
               {
                  GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
                  return 1;
               }*/
                if(PlayerInfo[playerid][pPcarkey] == 999) { }
                else if(PlayerInfo[playerid][pPcarkey2] == 999) { }
                else if(PlayerInfo[playerid][pPcarkey3] == 999) { }
                else { SendClientMessage(playerid, COLOR_GREY, "   Vec posjedujete 3 vozila"); return 1; }
               if(CarInfo[idcar][cOwned]==1)
               {
                   SendClientMessage(playerid, COLOR_GREY, "Neko vec posjeduje to vozilo");
                   return 1;
               }
               if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
               {
                   if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = idcar; }
                   else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = idcar; }
                   else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = idcar; }
                   else { return 1; }
                  CarInfo[idcar][cOwned] = 1;
                  SaveCarCoords();
                  SaveCarCoords()
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
                  SafeGivePlayerMoney(playerid,-CarInfo[idcar][cValue]);
                  SBizzInfo[1][sbTill] += 5000;
                  SafeGivePlayerMoney(playerid,-30000);
                  ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);
                  SBizzInfo[1][sbProducts]--;
                  GameTextForPlayer(playerid, "~w~Cestitamo~n~Nemojte zaboraviti /v park da ga parkirate!", 5000, 3);
                  SendClientMessage(playerid, COLOR_GRAD2, "Cestitamo vam na novoj kupovini!");
                  SendClientMessage(playerid, COLOR_GRAD2, "Kucajte /vehiclehelp da vidite uputstva!");
                  SendClientMessage(playerid, COLOR_YELLOW2, "Sada mozete upaliti motor !");
                  gEngine[playerid] = 0;
                  SaveCarCoords()
                  SaveCarCoords();
                  engineOn[GetPlayerVehicleID(playerid)] = false;
                  DateProp(playerid);
                  OnPropUpdate();
                  OnPlayerUpdateCustom(playerid);
                  return 1;
               }
               else
               {
                   SendClientMessage(playerid, COLOR_GREY, "  Nemate dovoljno novca kod sebe ! ");
                   return 1;
               }
               }
           }
           else
           {
               SendClientMessage(playerid, COLOR_WHITE, "Podsjetnik: (/v)ehicle [name]");
               SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock(1-3), sell, sellto, color");
               return 1;
           }
       }
       return 1;
   }

Ako imas vec komandu /v dodaj i ovo
Nisam trazio komandu nego sam pitao za pomoc,imam vec komandu !

Jel moze neko da mi obijasni kako da dodajem vozila na /v buy na server i kako da dodam ovako vozilo ali da ostane boja koju ja stavim
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......