Mape u Tutorijalu

Započeo Vasic, Mart 05, 2019, 16:49:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Napravio sam tutorial neki gde se uopste ne ucitavaju mape. Znaci npr: Tutorial o Banci i prikazuje se sad ona kao pokretna kamera i ide ka banci a uopste ne ucitava mapu banke (dole su slike) a isto tako i za sve ostale mape u tutorijalu. Rade normalno kada se igrac spawnuje, pokusavao sam menjati SetPlayerInterior i VirtualWorld i nista ne pomaze, i brisao sam to nekoliko puta i opet nista.Proveravao sam po OnPlayerConnect da l' slucajno nema negde podesen interior na lupam 242 itd.. Ne znam sta bi ovde moglo biti, evo vam ceo kod tutorijala:
Dio skripte: [pawn]forward tutorialkrece(playerid,next);
public tutorialkrece(playerid,next)
{
   if(next == 1)
   {
       OcistiChat(playerid,80);
      InterpolateCameraPos(playerid, 1535.587158, -1055.672851, 51.736480, 1457.255249, -1049.724365, 27.051618, 8000);
      InterpolateCameraLookAt(playerid, 1531.460449, -1053.868408, 49.565170, 1457.150024, -1044.734741, 26.747119, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
      SCM(playerid,-1,""BELA"~ "PPLAVA"BANKA"BELA" ~");
      SCM(playerid,-1," ");
      SCM(playerid, -1, "Banka je mesto gde je vas novac najsigurniji.");
      SCM(playerid, -1, "U Nju mozete ostaviti vas novac, otvoriti racun ili podici kredit.");
      SCM(playerid, -1, "Mafije i Bande je cesto pljackaju, tako da vam preporucujemo da se odaljite od banke u to vreme");
      SCM(playerid, -1, "I pozovete policiju, sve sluzbene brojeve pronalazite na /call");
       TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 2 );
   }
   else if(next == 2)
   {
       OcistiChat(playerid,80);
      InterpolateCameraPos(playerid, 1547.549804, -2332.938964, 45.617465, 1535.769531, -2205.598388, 16.936004, 8000);
      InterpolateCameraLookAt(playerid, 1547.781616, -2328.269531, 43.844699, 1539.168945, -2209.081542, 15.790343, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
      SCM(playerid,-1,""BELA"~ "PPLAVA"AUTO SKOLA"BELA" ~");
      SCM(playerid,-1," ");
      SCM(playerid, -1, "U Auto skoli vas ceka instruktor koji ce vam predavati casove voznje.");
      SCM(playerid, -1, "U Njoj kupujete sve vrste dozvola sem dozvole za oruzje.");
      SCM(playerid, -1, "Nakon testa, idete na poligon i voznju po gradu.");
       TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 3 );
   }
   else if(next == 3)
   {
       OcistiChat(playerid,80);
      InterpolateCameraPos(playerid, 1051.327392, -971.022949, 70.035331, 984.754760, -956.164062, 48.636283, 8000);
      InterpolateCameraLookAt(playerid, 1048.075683, -968.394714, 67.293251, 987.789184, -952.357788, 47.494113, 8000);
       SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
      SCM(playerid,-1,""BELA"~ "PPLAVA"BENZINSKA PUMPA"BELA" ~");
      SCM(playerid,-1," ");
      SCM(playerid, -1, "Vec sam naziv govori sta se radi na ovom mestu. Toci se gorivo, ocigledno.");
      SCM(playerid, -1, "Pumpa radi 24/7 te je tako mozete posetiti u bilo koje doba dana.");
      SCM(playerid, -1, "Pored nje imate i mini-market u kom mozete kupiti npr. kanticu za gorivo.");
       TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 4 );
   }
   else if(next == 4)
   {
       OcistiChat(playerid,80);
      SCM(playerid,-1,""BELA"~ "PPLAVA"BURG"BELA" ~");
      SCM(playerid,-1," ");
      SCM(playerid, -1, "Burg je jedno od zabavnih mesta na serveru.");
      SCM(playerid, -1, "U Njemu je jako zdrava i kvalitetna hrana, preporucujemo vam ga.");
      SCM(playerid, -1, "Pred njim se odrzavaju cesto Live Eventi, Car Show itd...");
      SCM(playerid, -1, "Te je tako i dobio naziv 'Zabavno mesto'.");
      InterpolateCameraPos(playerid, 1260.450195, -962.957092, 78.868972, 1185.900024, -958.164245, 69.929161, 8000);
      InterpolateCameraLookAt(playerid, 1257.355346, -959.734924, 76.624069, 1186.561645, -953.554687, 68.108711, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
       TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 5 );
   }
   else if(next == 5)
   {
       OcistiChat(playerid,80);
      InterpolateCameraPos(playerid, 1536.883178, -1698.113281, 40.059890, 1480.217407, -1714.066528, 30.266544, 8000);
      InterpolateCameraLookAt(playerid, 1533.662963, -1701.746582, 38.864547, 1480.281250, -1718.940063, 29.151012, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
      SCM(playerid,-1,""BELA"~ "PPLAVA"OPSTINA"BELA" ~");
      SCM(playerid,-1," ");
      SCM(playerid, -1, "Opstina je najposecenije mesto na serveru.");
      SCM(playerid, -1, "Pred njom je strogo zabranjeno krsenje pravila (npr.DB/DM)");
      SCM(playerid, -1, "Opstina pored toga sto je najposecenija, nudi vam i razne usluge.");
      SCM(playerid, -1, "Primeri su da se zaposlite, da date otkaz ili izvadite pasos.");
       TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 6 );
    }
    else if(next == 6)
   {
       OcistiChat(playerid,80);
      InterpolateCameraPos(playerid, -15.768556, 120.716857, 22.995714, -42.639873, 18.871877, 7.509286, 8000);
      InterpolateCameraLookAt(playerid, -18.101566, 116.506889, 21.641738, -38.621009, 21.476886, 6.073095, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
      SCM(playerid,-1,""BELA"~ "PPLAVA"POSLOVI"BELA" ~");
      SCM(playerid,-1," ");
      SCM(playerid, -1, "Na nasem serveru postoji vise od 10+ poslova, za koje treba razliciti leveli.");
      SCM(playerid, -1, "Svaki posao je na svoj nacin dobar i lepo placen, ali sto bolji posao, za njega treba veci level.");
      SCM(playerid, -1, "Primer posla koji vam prikazujemo je Farmer");
      SCM(playerid, -1, "Na poslovima je takodje strogo zabranjeno raditi DB ili DM.");
       TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 7 );
    }
   else if(next == 7)
   {
          OcistiChat(playerid,80);
         SCM(playerid,-1,""BELA"~ "PPLAVA"MAFIJE"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Vec znate o cemu se radi kada je u pitanju Mafija, dakle, o ilegalu.");
         SCM(playerid, -1, "Mafije mogu svercovati i pljackati. One kontrolisu bande, i sklapaju saveze.");
         SCM(playerid, -1, "Ukoliko ste civil, klonite se mracnih ulica da vas ne bi kindapovali.");
         InterpolateCameraPos(playerid, 1166.838500, -849.657226, 130.112182, 1232.209716, -759.020507, 99.660736, 8000);
         InterpolateCameraLookAt(playerid, 1171.005371, -847.534301, 128.342773, 1235.605712, -762.387756, 98.201805, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 8 );
   }
   else if(next == 8)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 2426.802246, -1705.250366, 40.273414, 2504.044433, -1677.067749, 16.566926, 8000);
         InterpolateCameraLookAt(playerid, 2430.764404, -1702.768920, 38.500648, 2501.490722, -1681.343261, 16.122520, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"BANDE"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Za mafijom tu je odmah i Banda. One su takodje ilegalne.");
         SCM(playerid, -1, "Svaka banda ima svoj savez, koliko bandi, toliko mafija.");
         SCM(playerid, -1, "Dok mafije pljackaju, Bande sade drogu.");
         SCM(playerid, -1, "Takodje se klonite i bandi.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 9 );
   }
   else if(next == 9)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 2426.802246, -1705.250366, 40.273414, 2504.044433, -1677.067749, 16.566926, 8000);
         InterpolateCameraLookAt(playerid, 2430.764404, -1702.768920, 38.500648, 2501.490722, -1681.343261, 16.122520, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"BANDE"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Za mafijom tu je odmah i Banda. One su takodje ilegalne.");
         SCM(playerid, -1, "Svaka banda ima svoj savez, koliko bandi, toliko mafija.");
         SCM(playerid, -1, "Dok mafije pljackaju, Bande sade drogu.");
         SCM(playerid, -1, "Takodje se klonite i bandi.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 10 );
   }
   else if(next == 10)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 1512.071411, -1593.417968, 52.307651, 1502.953735, -1674.891967, 35.933422, 8000);
         InterpolateCameraLookAt(playerid, 1513.756469, -1597.324462, 49.680908, 1507.774047, -1674.938476, 34.605789, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"DRZAVNE ORGANIZACIJE"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Pored Mafija i Bandi postoje i Drzavne Organizacije.");
         SCM(playerid, -1, "One su zaduzene da zavode mir i red u radu.");
         SCM(playerid, -1, "Primer drzavne organizacije koju vam prikazujemo jeste Policija.");
         SCM(playerid, -1, "Ukoliko primetite lopova ili nekog dzeparosa, pozovite policiju na /call.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 11 );
   }
   else if(next == 11)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 1330.516113, -1356.829101, 55.517627, 1345.337402, -1281.975952, 28.166292, 8000);
         InterpolateCameraLookAt(playerid, 1332.371948, -1352.865234, 53.100238, 1349.740356, -1281.972045, 25.796916, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"GUN SHOP"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Gun Shop je jedino sigurno mesto gde mozete sebi nabaviti oruzje.");
         SCM(playerid, -1, "Za oruzje morate posedovati Dozvolu za oruzje, nju mozete kupiti u Policijskoj Stanici.");
         SCM(playerid, -1, "Svako oruzje ima svoju cenu, i svako je jako na svoj nacin.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 12 );
   }
   else if(next == 12)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 1722.848999, -1273.763549, 45.012359, 1644.487670, -1336.101196, 23.618389, 8000);
         InterpolateCameraLookAt(playerid, 1720.028076, -1277.662231, 43.654930, 1647.537231, -1339.952392, 22.686685, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"ZLATARA"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Zlatara je mesto gde mozete kupiti ili prodati zlato.");
         SCM(playerid, -1, "Ona je takodje cest slucaj mafijasima za pljacke.");
         SCM(playerid, -1, "Klonite se zlatare kada je u toku pljacka, pozovite policiju na /call.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 13 );
   }
   else if(next == 13)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 31.820144, 1728.421386, 65.626731, 292.115997, 1949.474365, 53.492877, 8000);
         InterpolateCameraLookAt(playerid, 35.139385, 1732.029541, 64.644874, 288.097198, 1946.976196, 51.877838, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"ZATVOR"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "U Zatvor idu gradjani koji ne postuju pravila ili koji su osumnjiceni.");
         SCM(playerid, -1, "Ukoliko neki igrac ubije nekog, policija preuzima slucaj, hapsi igraca i dovodi ga u zatvor.");
         SCM(playerid, -1, "Izbegavajte ubistva i krsenje zakona i necete zavrsiti ovde.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 14 );
   }
   else if(next == 14)
   {
          OcistiChat(playerid,80);
         InterpolateCameraPos(playerid, 1625.466064, -1061.452270, 86.809753, 1436.420410, -932.025634, 93.646835, 8000);
         InterpolateCameraLookAt(playerid, 1622.170166, -1057.705810, 87.127159, 1435.906616, -927.080322, 93.117790, 8000);
           SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
         SCM(playerid,-1,""BELA"~ "PPLAVA"KRAJ TUTORIJALA"BELA" ~");
         SCM(playerid,-1," ");
         SCM(playerid, -1, "Dosli smo napokon do kraja tutorijala.");
         SCM(playerid, -1, "Ukoliko nemate pomoc, pozovite nasu Administraciju na /pitaj.");
         SCM(playerid, -1, "Mozete pozvati Taxi sluzbu na /taxi ili pogledati komande na /komande.");
         SCM(playerid, -1, "Ugodnu igru vam zeli "PPLAVA"Old Nation"BELA" Staff Team.");
          TutorialTimer[playerid] = SetTimerEx("tutorialkrece",15000, false, "ii", playerid, 15 );
   }
   else if(next == 15)
   {
      KillTimer( TutorialTimer[ playerid ] );
        OcistiChat(playerid,80); SetCameraBehindPlayer(playerid);
         new string[256]; PlayerInfo[playerid][pTutorial] = 1;
       format(string, sizeof(string), ""SPLAVA"(( ON:RP )) - "BELA"Dobro nam dosli "SPLAVA"%s"BELA" prvi put na nasu zajednicu!", ProveraImenaBDC(playerid));
       SCM(playerid, -1, string);
       SCM(playerid, -1, ""SPLAVA"(( ON:RP )) - "BELA"Ukoliko nemate prevoz pozovite taxi ili iznajmite vozilo.");
       SCM(playerid, -1, ""SPLAVA"(( ON:RP )) - "BELA"Ako vam je potrebna pomoc obratite se adminima na /pitaj ili kucajte /komande.");
       TogglePlayerControllable(playerid, 1); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
       if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 240); PlayerInfo[playerid][pSkin] = 240; }
      if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
      UlogovanProvera[playerid] = 1; new rand = random(sizeof(RandomSpawn2));
      SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
       SpawnPlayer(playerid); SpawnIgraca(playerid); SavePlayer(playerid);
   }
   return 1;
}[/pawn]Da dodam jos nesto, mislim da je ne potrebno pisati ono kao 'imas 2k+ poruka a ne znas ovo napravit' i sl. Dakle, ne znam sta bi jos moglo ovde biti, trazim vase savete. || I da, ove SetPlayerInterior i VirtualWorld nema potrebe da mi pricate da ih brisem itd. Vec sam to radio nekoliko puta i ne radi.
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Nema potrebe za ovim, nista ne izbacuje u server.log.
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/pGn8CEa (Scroll Down)
Poslednja Izmena: Mart 07, 2019, 19:57:15 POSLE PODNE od Bašovski
• Website: www.vasic.dev
Web Development & Cyber Security

probaj da postavljaš kordinate igrača i kamere kako kamera leti

@v4yne1 hvala, radi! <3 #LOCK
• Website: www.vasic.dev
Web Development & Cyber Security