[Pomoc] Save


Započeo LoOdaK, Mart 17, 2014, 19:53:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Balkan Extreme x8.5 ja msm
Detaljan opis problema:imam tuning sistem i kada auto /v park ne ostane tune.Ako moze neko da mi to napravi
Dio skripte:v park komanda:
else if(strcmp(x_nr,"park",true) == 0)
           {



               new Float:x,Float:y,Float:z;
            new Float:a;
            new carid;
            new getcarid;
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; } // novi auto
            else { return 1; }
            getcarid = GetPlayerVehicleID(playerid);
            GetPlayerName(playerid, playername, sizeof(playername));
            GetVehiclePos(carid, x, y, z);
            GetVehicleZAngle(carid, a);
            if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
            {
                  if(PlayerInfo[playerid][pPcarkey] == 999  && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
               {
                  SendClientMessage(playerid, COLOR_GREY, "Neposjedujes vozilo.");
                  return 1;
               }

// ********************
    new Float:chealth;
    new cveh;
    cveh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(cveh, chealth);
    if(chealth <700)
   {
   SendClientMessage(playerid,COLOR_RED,"Vozilo je suvise osteceno, morate ga popraviti prvo !!");
   return 1;
   }
// *******************
if(GetPlayerMoney(playerid) < 201)
{
SendClientMessage(playerid,COLOR_RED,"Nemate dovoljno para sa sobom !!");
SendClientMessage(playerid,COLOR_RED,"Parkiranje vozila kosta 200$ !!");
return 1;
}
// *******************
               if(getcarid == carid)
               {
                  CarInfo[carid][cLocationx] = x;
                  CarInfo[carid][cLocationy] = y;
                  CarInfo[carid][cLocationz] = z;
                  CarInfo[carid][cAngle] = a;
// snimanje modifikacija
   new slot[14];
   slot[0] = GetVehicleComponentInSlot(carid, 0);
   slot[1] = GetVehicleComponentInSlot(carid, 1);
   slot[2] = GetVehicleComponentInSlot(carid, 2);
   slot[3] = GetVehicleComponentInSlot(carid, 3);
   slot[4] = GetVehicleComponentInSlot(carid, 4);
   slot[5] = GetVehicleComponentInSlot(carid, 5);
   slot[6] = GetVehicleComponentInSlot(carid, 6);
   slot[7] = GetVehicleComponentInSlot(carid, 7);
   slot[8] = GetVehicleComponentInSlot(carid, 8);
   slot[9] = GetVehicleComponentInSlot(carid, 9);
   slot[10] = GetVehicleComponentInSlot(carid, 10);
   slot[11] = GetVehicleComponentInSlot(carid, 11);
   slot[12] = GetVehicleComponentInSlot(carid, 12);
   slot[13] = GetVehicleComponentInSlot(carid, 13);
      CarInfo[carid][cComponent0] = slot[0];
      CarInfo[carid][cComponent1] = slot[1];
        CarInfo[carid][cComponent2] = slot[2];
        CarInfo[carid][cComponent3] = slot[3];
        CarInfo[carid][cComponent4] = slot[4];
      CarInfo[carid][cComponent5] = slot[5];
      CarInfo[carid][cComponent6] = slot[6];
      CarInfo[carid][cComponent7] = slot[7];
      CarInfo[carid][cComponent8] = slot[8];
      CarInfo[carid][cComponent9] = slot[9];
      CarInfo[carid][cComponent10] = slot[10];
      CarInfo[carid][cComponent11] = slot[11];
      CarInfo[carid][cComponent12] = slot[12];
      CarInfo[carid][cComponent13] = slot[13];


// ***************
                     OnPropUpdate();
                     OnPlayerUpdateCustom(playerid);
                  DestroyVehicle(carid);
                  SetVehicleModifications(carid); // nadodato
                  CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
                  SendClientMessage(playerid,COLOR_RED,"Parkiranje vozila kosta 200$ !!");
                  GivePlayerMoney(playerid,-200);
                  new boja
                     boja = CarInfo[carid][cPaintjob];
                     ChangeVehiclePaintjob(carid, boja);
                  SetVehicleModifications(carid);
// --------    za tablice      -------
        strmid(CarInfo[carid][cLicense], CarInfo[carid][cLicense], 0, strlen(CarInfo[carid][cLicense]), 8);
      SetVehicleNumberPlate(carid, CarInfo[carid][cLicense] );
      SetVehicleToRespawn(carid);
// ------------------------------------
                  TogglePlayerControllable(playerid, 1);
                  PutPlayerInVehicle(playerid, carid, 0);
                  format(string, sizeof(string), "~n~ Parkirao si vozilo na ovu lokaciju. ~n~");
                  GameTextForPlayer(playerid, "Parkirao si vozilo na ovu lokaciju. Od sad ce se spawnati ovdje.", 10000, 3);

                  return 1;
                  }
            }
           }
Neke slike/video za lakse dobivanje pomoci(neobavezno):///
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Imas u sekciji tutorijali pa nadji i sve lepo objasnjeno.

Ne mogu naci  :'( :'( :'( :'( :'(
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!




Ljubo probavao sam ovo prije ne radi mi  :'(
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Nije u tome da uradis da ti sacuva tune kad parkiras nego kad udjes na server ili kad ugasis servera tune nestane jel ti jasno u tom trenutku postavi public sa setvehiclecomponent to je da ti sacuva dog si ingame kad ugasis servera tune nestane to je brate :)

A kada upalim server oce biti opet tune i nezz kako napraviti
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Stavis OnGameModeExit ili kako ti vec ide da se sacuva i stavis kada pokrenes server da se ucita.

Napravio bi ja to aliiiii nezz kako zato sam ovde i postavio
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Citat: Boki Boki poslato Mart 19, 2014, 10:18:37 PRE PODNE
Napravio bi ja to aliiiii nezz kako zato sam ovde i postavio
odakle si?

Republika Srpska
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!