Autosalon

Započeo Besha_Cappone, Jun 29, 2019, 11:02:52 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kad kucam /kupiauto, treba da mi pokaze vozilo, medjuti ne pokaze ga, i kad te prebaci na kameru slika je nekako mutna.
Deo skripte:[pawn]YCMD:kupiauto(playerid, params[], help)
{
   #pragma unused help
   #pragma unused params
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BG: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pDvaV] == 1)
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1 && PlayerInfo[playerid][pPosedovanjeAuta2] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes 2 auta!");
   }
   else
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes auto!");
   }
   if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid,-1,""SIVA"Morate biti level 4+ za kupovinu auta!");
   if(IsPlayerInRangeOfPoint(playerid, 5.0, 541.2391,-1296.3015,-55.8481) || IsPlayerInRangeOfPoint(playerid, 5.0, 2172.9819,1400.6012,11.0625))
   {
      new string[128];
      if(KupovinaAuta[playerid] == true) return SCM(playerid,-1,""SIVA"Vec gledate katalog vozila!");
      if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""SIVA"Ne mozete gledati katalog iz vozila!");
      if(ServerInfo[isdozvolakupovine] == 0) return SCM(playerid,-1,"BG: "CRVENA"Admin je zabranio kupovinu auta");
      if(autokatalog != 0) return SCM(playerid,-1,""SIVA"Neko vec pregleda katalog!");
      JBC_TogglePlayerControllable(playerid, 0); KupovinaAuta[playerid] = true; PrikaziVozilaTD(playerid); autokatalog = 1;
      format(string,sizeof(string),"%s",ImenaVozila[GetVehicleModel(IzlozbenoAuto) - 400]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[2][playerid],string);
      format(string,sizeof(string),"Cena: ~g~%d$",AutoSalon[AutoModel][1]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[3][playerid],string);
      SCM(playerid, -1, "BG "ZELENA"VAZNO!!! SISTEM KORISTI VASE TRENUTNE TIPKE, DAKLE AKO STE MENJALI PROCITAJTE!!!");
       SCM(playerid, -1, "BG "ZELENA"Koristite tipke NUMPAD 1-6 ili LEVO/DESNO za listanje vozila!");
      SCM(playerid, -1, "BG "ZELENA"Za kupovinu stisnite ENTER ili F! ");
      SCM(playerid, -1, "BG "ZELENA"Za izlaz stisnite tipku za skakanje!(SHIFT/SPACE)");
        SetPlayerCameraPos(playerid, 1779.96851, -1050.26184, 30.06960);
      SetPlayerCameraLookAt(playerid, 1780.8602,-1084.3007,23.9609);
    }
    else if(UsaoAutoProdaja[playerid] != -1)
    {
        new i = UsaoAutoProdaja[playerid];
        if(VoziloInfo[vImaVlasnika] == 0)
      {
          new vid = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
          if(PlayerInfo[playerid][pNovacDzep] < AutoSalon[vid][1]/2) return SCM(playerid,-1,""SIVA"Nemate dovoljno novca!");
          g_NovacMinus(playerid, AutoSalon[vid][1]/2);
            if(PlayerInfo[playerid][pPosedovanjeAuta] != -1)
         {
            PlayerInfo[playerid][pPosedovanjeAuta2] = i;
         }
         else
         {
            PlayerInfo[playerid][pPosedovanjeAuta] = i;
         }
         VoziloInfo[vRadio] = 0;
         VoziloInfo[vImaVlasnika] = 1; VoziloInfo[vZakljucan] = 1;
         VoziloInfo[vDroga] = 0; VoziloInfo[vMats] = 0;
         VoziloInfo[vOruzije] = -1; VoziloInfo[vMunicija] = 0;
         strmid(VoziloInfo[vVlasnik], GetName(playerid), 0, strlen(GetName(playerid)), 999);
           SacuvajVozilo(i); SavePlayer(playerid); JBC_TogglePlayerControllable(playerid, 1);
           SCMF(playerid,-1,""CRVENA"BG: "BELA"Uspesno ste kupili polovan auto za %d$ novca!",AutoSalon[vid][1]/2);
           UsaoAutoProdaja[playerid] = -1;
      }
      else return SCM(playerid,-1,""CRVENA"BG: "SIVA"To vozilo nije na prodaju!");
    }
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Nista[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/KqYOC1z

Citat: Besha_Cappone poslato Jun 29, 2019, 11:02:52 PRE PODNE
Problem(error/warning): Kad kucam /kupiauto, treba da mi pokaze vozilo, medjuti ne pokaze ga, i kad te prebaci na kameru slika je nekako mutna.
Deo skripte:[pawn]YCMD:kupiauto(playerid, params[], help)
{
   #pragma unused help
   #pragma unused params
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BG: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pDvaV] == 1)
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1 && PlayerInfo[playerid][pPosedovanjeAuta2] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes 2 auta!");
   }
   else
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes auto!");
   }
   if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid,-1,""SIVA"Morate biti level 4+ za kupovinu auta!");
   if(IsPlayerInRangeOfPoint(playerid, 5.0, 541.2391,-1296.3015,-55.8481) || IsPlayerInRangeOfPoint(playerid, 5.0, 2172.9819,1400.6012,11.0625))
   {
      new string[128];
      if(KupovinaAuta[playerid] == true) return SCM(playerid,-1,""SIVA"Vec gledate katalog vozila!");
      if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""SIVA"Ne mozete gledati katalog iz vozila!");
      if(ServerInfo[isdozvolakupovine] == 0) return SCM(playerid,-1,"BG: "CRVENA"Admin je zabranio kupovinu auta");
      if(autokatalog != 0) return SCM(playerid,-1,""SIVA"Neko vec pregleda katalog!");
      JBC_TogglePlayerControllable(playerid, 0); KupovinaAuta[playerid] = true; PrikaziVozilaTD(playerid); autokatalog = 1;
      format(string,sizeof(string),"%s",ImenaVozila[GetVehicleModel(IzlozbenoAuto) - 400]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[2][playerid],string);
      format(string,sizeof(string),"Cena: ~g~%d$",AutoSalon[AutoModel][1]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[3][playerid],string);
      SCM(playerid, -1, "BG "ZELENA"VAZNO!!! SISTEM KORISTI VASE TRENUTNE TIPKE, DAKLE AKO STE MENJALI PROCITAJTE!!!");
       SCM(playerid, -1, "BG "ZELENA"Koristite tipke NUMPAD 1-6 ili LEVO/DESNO za listanje vozila!");
      SCM(playerid, -1, "BG "ZELENA"Za kupovinu stisnite ENTER ili F! ");
      SCM(playerid, -1, "BG "ZELENA"Za izlaz stisnite tipku za skakanje!(SHIFT/SPACE)");
        SetPlayerCameraPos(playerid, 1779.96851, -1050.26184, 30.06960);
      SetPlayerCameraLookAt(playerid, 1780.8602,-1084.3007,23.9609);
    }
    else if(UsaoAutoProdaja[playerid] != -1)
    {
        new i = UsaoAutoProdaja[playerid];
        if(VoziloInfo[vImaVlasnika] == 0)
      {
          new vid = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
          if(PlayerInfo[playerid][pNovacDzep] < AutoSalon[vid][1]/2) return SCM(playerid,-1,""SIVA"Nemate dovoljno novca!");
          g_NovacMinus(playerid, AutoSalon[vid][1]/2);
            if(PlayerInfo[playerid][pPosedovanjeAuta] != -1)
         {
            PlayerInfo[playerid][pPosedovanjeAuta2] = i;
         }
         else
         {
            PlayerInfo[playerid][pPosedovanjeAuta] = i;
         }
         VoziloInfo[vRadio] = 0;
         VoziloInfo[vImaVlasnika] = 1; VoziloInfo[vZakljucan] = 1;
         VoziloInfo[vDroga] = 0; VoziloInfo[vMats] = 0;
         VoziloInfo[vOruzije] = -1; VoziloInfo[vMunicija] = 0;
         strmid(VoziloInfo[vVlasnik], GetName(playerid), 0, strlen(GetName(playerid)), 999);
           SacuvajVozilo(i); SavePlayer(playerid); JBC_TogglePlayerControllable(playerid, 1);
           SCMF(playerid,-1,""CRVENA"BG: "BELA"Uspesno ste kupili polovan auto za %d$ novca!",AutoSalon[vid][1]/2);
           UsaoAutoProdaja[playerid] = -1;
      }
      else return SCM(playerid,-1,""CRVENA"BG: "SIVA"To vozilo nije na prodaju!");
    }
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Nista[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/KqYOC1z
Tu vjerovatno imas mapu a nisi promijenio pozicije kamere promijeni pozicije kamere
AKO ZNAS ZA BOGA I ZA GLAVU ZIVU NE BRANI MI DOKTORE RAKIJU I PIVU

Citat: Aggressive poslato Jun 29, 2019, 13:04:11 POSLE PODNE
Tu vjerovatno imas mapu a nisi promijenio pozicije kamere promijeni pozicije kamere
Poziciaj kamere je promijenjena, tu je mapa za salon.

Citat: Besha_Cappone poslato Jun 29, 2019, 13:27:44 POSLE PODNE
Poziciaj kamere je promijenjena, tu je mapa za salon.
Udi ig i gdje hoces da ti bude /save i u pawnu samo promijeni ne moze ti nista drugo bit jedino mapa ti smeta zato sto nisi promijenio pozicije
AKO ZNAS ZA BOGA I ZA GLAVU ZIVU NE BRANI MI DOKTORE RAKIJU I PIVU

Citat: Aggressive poslato Jun 29, 2019, 22:50:31 POSLE PODNE
Udi ig i gdje hoces da ti bude /save i u pawnu samo promijeni ne moze ti nista drugo bit jedino mapa ti smeta zato sto nisi promijenio pozicije
Zamolio bih te da ne komentarises ako nemas blage hvala.


@tema
[pawn]YCMD:kupiauto(playerid, params[], help)
{
   #pragma unused help
   #pragma unused params
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BG: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pDvaV] == 1)
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1 && PlayerInfo[playerid][pPosedovanjeAuta2] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes 2 auta!");
   }
   else
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes auto!");
   }
   if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid,-1,""SIVA"Morate biti level 4+ za kupovinu auta!");
   if(IsPlayerInRangeOfPoint(playerid, 5.0, 541.2391,-1296.3015,-55.8481) || IsPlayerInRangeOfPoint(playerid, 5.0, 2172.9819,1400.6012,11.0625))
   {
      new string[128];
      if(KupovinaAuta[playerid] == true) return SCM(playerid,-1,""SIVA"Vec gledate katalog vozila!");
      if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""SIVA"Ne mozete gledati katalog iz vozila!");
      if(ServerInfo[isdozvolakupovine] == 0) return SCM(playerid,-1,"BG: "CRVENA"Admin je zabranio kupovinu auta");
      if(autokatalog != 0) return SCM(playerid,-1,""SIVA"Neko vec pregleda katalog!");
      JBC_TogglePlayerControllable(playerid, 0); KupovinaAuta[playerid] = true; PrikaziVozilaTD(playerid); autokatalog = 1;
      format(string,sizeof(string),"%s",ImenaVozila[GetVehicleModel(IzlozbenoAuto) - 400]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[2][playerid],string);
      format(string,sizeof(string),"Cena: ~g~%d$",AutoSalon[AutoModel][1]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[3][playerid],string);
      SCM(playerid, -1, "BG "ZELENA"VAZNO!!! SISTEM KORISTI VASE TRENUTNE TIPKE, DAKLE AKO STE MENJALI PROCITAJTE!!!");
       SCM(playerid, -1, "BG "ZELENA"Koristite tipke NUMPAD 1-6 ili LEVO/DESNO za listanje vozila!");
      SCM(playerid, -1, "BG "ZELENA"Za kupovinu stisnite ENTER ili F! ");
      SCM(playerid, -1, "BG "ZELENA"Za izlaz stisnite tipku za skakanje!(SHIFT/SPACE)");
        SetPlayerCameraPos(playerid, 1779.96851, -1050.26184, 30.06960);
                SetPlayerPos(playerid, 1779.96851, -1050.26184, 25.06960
      SetPlayerCameraLookAt(playerid, 1780.8602,-1084.3007,23.9609);
    }
    else if(UsaoAutoProdaja[playerid] != -1)
    {
        new i = UsaoAutoProdaja[playerid];
        if(VoziloInfo[vImaVlasnika] == 0)
      {
          new vid = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
          if(PlayerInfo[playerid][pNovacDzep] < AutoSalon[vid][1]/2) return SCM(playerid,-1,""SIVA"Nemate dovoljno novca!");
          g_NovacMinus(playerid, AutoSalon[vid][1]/2);
            if(PlayerInfo[playerid][pPosedovanjeAuta] != -1)
         {
            PlayerInfo[playerid][pPosedovanjeAuta2] = i;
         }
         else
         {
            PlayerInfo[playerid][pPosedovanjeAuta] = i;
         }
         VoziloInfo[vRadio] = 0;
         VoziloInfo[vImaVlasnika] = 1; VoziloInfo[vZakljucan] = 1;
         VoziloInfo[vDroga] = 0; VoziloInfo[vMats] = 0;
         VoziloInfo[vOruzije] = -1; VoziloInfo[vMunicija] = 0;
         strmid(VoziloInfo[vVlasnik], GetName(playerid), 0, strlen(GetName(playerid)), 999);
           SacuvajVozilo(i); SavePlayer(playerid); JBC_TogglePlayerControllable(playerid, 1);
           SCMF(playerid,-1,""CRVENA"BG: "BELA"Uspesno ste kupili polovan auto za %d$ novca!",AutoSalon[vid][1]/2);
           UsaoAutoProdaja[playerid] = -1;
      }
      else return SCM(playerid,-1,""CRVENA"BG: "SIVA"To vozilo nije na prodaju!");
    }
   return 1;
}
[/pawn]
Ako nece verovatno imas neki anticheat za specanje ili slicno

Citat: Besha_Cappone poslato Jun 29, 2019, 11:02:52 PRE PODNE
Problem(error/warning): Kad kucam /kupiauto, treba da mi pokaze vozilo, medjuti ne pokaze ga, i kad te prebaci na kameru slika je nekako mutna.
Deo skripte:[pawn]YCMD:kupiauto(playerid, params[], help)
{
   #pragma unused help
   #pragma unused params
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BG: "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pDvaV] == 1)
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1 && PlayerInfo[playerid][pPosedovanjeAuta2] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes 2 auta!");
   }
   else
   {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1) return SCM(playerid,-1,""SIVA"Vec posedujes auto!");
   }
   if(PlayerInfo[playerid][pLevel] < 4) return SCM(playerid,-1,""SIVA"Morate biti level 4+ za kupovinu auta!");
   if(IsPlayerInRangeOfPoint(playerid, 5.0, 541.2391,-1296.3015,-55.8481) || IsPlayerInRangeOfPoint(playerid, 5.0, 2172.9819,1400.6012,11.0625))
   {
      new string[128];
      if(KupovinaAuta[playerid] == true) return SCM(playerid,-1,""SIVA"Vec gledate katalog vozila!");
      if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,""SIVA"Ne mozete gledati katalog iz vozila!");
      if(ServerInfo[isdozvolakupovine] == 0) return SCM(playerid,-1,"BG: "CRVENA"Admin je zabranio kupovinu auta");
      if(autokatalog != 0) return SCM(playerid,-1,""SIVA"Neko vec pregleda katalog!");
      JBC_TogglePlayerControllable(playerid, 0); KupovinaAuta[playerid] = true; PrikaziVozilaTD(playerid); autokatalog = 1;
      format(string,sizeof(string),"%s",ImenaVozila[GetVehicleModel(IzlozbenoAuto) - 400]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[2][playerid],string);
      format(string,sizeof(string),"Cena: ~g~%d$",AutoSalon[AutoModel][1]);
      PlayerTextDrawSetString(playerid,TDProdajaVozila[3][playerid],string);
      SCM(playerid, -1, "BG "ZELENA"VAZNO!!! SISTEM KORISTI VASE TRENUTNE TIPKE, DAKLE AKO STE MENJALI PROCITAJTE!!!");
       SCM(playerid, -1, "BG "ZELENA"Koristite tipke NUMPAD 1-6 ili LEVO/DESNO za listanje vozila!");
      SCM(playerid, -1, "BG "ZELENA"Za kupovinu stisnite ENTER ili F! ");
      SCM(playerid, -1, "BG "ZELENA"Za izlaz stisnite tipku za skakanje!(SHIFT/SPACE)");
        SetPlayerCameraPos(playerid, 1779.96851, -1050.26184, 30.06960);
      SetPlayerCameraLookAt(playerid, 1780.8602,-1084.3007,23.9609);
    }
    else if(UsaoAutoProdaja[playerid] != -1)
    {
        new i = UsaoAutoProdaja[playerid];
        if(VoziloInfo[vImaVlasnika] == 0)
      {
          new vid = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
          if(PlayerInfo[playerid][pNovacDzep] < AutoSalon[vid][1]/2) return SCM(playerid,-1,""SIVA"Nemate dovoljno novca!");
          g_NovacMinus(playerid, AutoSalon[vid][1]/2);
            if(PlayerInfo[playerid][pPosedovanjeAuta] != -1)
         {
            PlayerInfo[playerid][pPosedovanjeAuta2] = i;
         }
         else
         {
            PlayerInfo[playerid][pPosedovanjeAuta] = i;
         }
         VoziloInfo[vRadio] = 0;
         VoziloInfo[vImaVlasnika] = 1; VoziloInfo[vZakljucan] = 1;
         VoziloInfo[vDroga] = 0; VoziloInfo[vMats] = 0;
         VoziloInfo[vOruzije] = -1; VoziloInfo[vMunicija] = 0;
         strmid(VoziloInfo[vVlasnik], GetName(playerid), 0, strlen(GetName(playerid)), 999);
           SacuvajVozilo(i); SavePlayer(playerid); JBC_TogglePlayerControllable(playerid, 1);
           SCMF(playerid,-1,""CRVENA"BG: "BELA"Uspesno ste kupili polovan auto za %d$ novca!",AutoSalon[vid][1]/2);
           UsaoAutoProdaja[playerid] = -1;
      }
      else return SCM(playerid,-1,""CRVENA"BG: "SIVA"To vozilo nije na prodaju!");
    }
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Nista[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/KqYOC1z


Podesi ove kordinate gdje je AutoSalon i koristi CamEditor,ako ne radi opet javi se,lp.
                SetPlayerCameraPos(playerid, 1779.96851, -1050.26184, 30.06960);
                SetPlayerPos(playerid, 1779.96851, -1050.26184, 25.06960
      SetPlayerCameraLookAt(playerid, 1780.8602,-1084.3007,23.9609);