Posao vozac goriva

Započeo ShomY071, Decembar 28, 2017, 12:57:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Detaljan opis problema: Uradio sam da se gorivo utovaruje levim klikom ali kada utovarim 1 bure ostalo nece znaci niti se pojavljuju ostali objekti na vozilu niti izlazi SCM igracu,jedino server dodaje tom vozilo +1 bure.Znaci posao mogu da radim,kada napunim 5 bureta opet ne izlazi SCM koji sam stavio al kad ukucam prevoz radi sve i odem do CPa i sve lepo.
Dio skripte:
[pawn]      if(UtovarGoriva[playerid] == 1)
        {
         new vehicleid1 = getPlayerNearestVehicle(playerid);
         if(DGorivaVozila(vehicleid1))
         {
            new vehicleid = DBVehicleID(vehicleid1);
            if(GorivoVozila[vehicleid1] == 5) return Error(playerid, "U ovom vozilu ima vec 5 bureta!");
               GorivoVozila[vehicleid1] += 1;
            if(GorivoVozila[vehicleid1] == 1)
             {
               bure[0][vehicleid] = CreateDynamicObject(3632,0,0,0,0,0,0, -1, -1, -1, 300);
               AttachDynamicObjectToVehicle(bure[0][vehicleid], vehicleid1, -0.31213, -0.98786, 0.20929, 0.000000, 0.000000, 0.000000 );
               SCM(playerid, POSAOBOJA, "[POSAO]: {FFFFFF}Ubacio si bure u vozilo. Burad: 1/5");
             }
             else if(DzakoviVozila[vehicleid1] == 2) // NADOLE OVO NISTA NE REAGUJE
             {
               bure[1][vehicleid] = CreateDynamicObject(3632,0,0,0,0,0,0, -1, -1, -1, 300);
               AttachDynamicObjectToVehicle(bure[1][vehicleid], vehicleid1, 0.31280, -0.99710, 0.20930, 0.000000, 0.000000, 0.000000 );
               SCM(playerid, POSAOBOJA, "[POSAO]: {FFFFFF}Ubacio si bure u vozilo. Burad: 2/5");
             }
             else if(DzakoviVozila[vehicleid1] == 3)
             {
               bure[2][vehicleid] = CreateDynamicObject( 3632,0,0,0,0,0,0, -1, -1, -1, 300);
               AttachDynamicObjectToVehicle(bure[2][vehicleid], vehicleid1, -0.00560, -1.66180, 0.20930, 0.000000, 0.000000, 0.000000 );
               SCM(playerid, POSAOBOJA, "[POSAO]: {FFFFFF}Ubacio si bure u vozilo. Burad: 3/5");
             }
             else if(DzakoviVozila[vehicleid1] == 4)
             {
               bure[3][vehicleid] = CreateDynamicObject(3632,0,0,0,0,0,0, -1, -1, -1, 300);
               AttachDynamicObjectToVehicle(bure[3][vehicleid], vehicleid1, -0.32920, -2.25140, 0.20930, 0.000000, 0.000000, 0.000000 );
               SCM(playerid, POSAOBOJA, "[POSAO]: {FFFFFF}Ubacio si bure u vozilo. Burad: 4/5");
             }
             else if(DzakoviVozila[vehicleid1] == 5)
             {
               bure[4][vehicleid] = CreateDynamicObject(3632,0,0,0,0,0,0, -1, -1, -1, 300);
               AttachDynamicObjectToVehicle(bure[4][vehicleid], vehicleid1, 0.30310, -2.29850, 0.20930, 0.000000, 0.000000, 0.000000 );
               SCM(playerid, POSAOBOJA, "[POSAO]: {FFFFFF}Natovarili ste gorivo,sad ga odvezite na pumpu(/prevoz)!");
             }
            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
            RemovePlayerAttachedObject(playerid, 0);
            UtovarGoriva[playerid] = 0;
         }
      }[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno): Ako bude potrebno dacu





Zabranjen bump.


heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci