Ne mjenja mi vozilo u ASu

Započeo Banks22, Jul 18, 2024, 20:46:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Znaci na TDu (previewmodel) mi izmjeni sliku auta dok mjenjam vozilo u autosalonu ali mi ne promjeni vozilo koje je izlozbeno
Deo skripte:
CMD:kupivozilo( playerid, params[] ) {
    if( ServerInfo[ KupovinaVozila ] == false ) return SendErrorMessage( playerid, "Trenutno nije moguce kupovanje auta po salonima." );

    if( PlayerInfo[playerid][ xWanted ] > 0 ) return SendErrorMessage( playerid, "Ne mozes kupovati kad imas Wanted Level." );

if( PlayerInfo[playerid][ xVoziloID ][ 0 ] == -1 ) { }
    else if( PlayerInfo[playerid][ xVoziloID ][ 1 ] == -1 ) { }
    else if( PlayerInfo[playerid][ xVoziloID ][ 2 ] == -1 ) { }
    else if( PlayerInfo[playerid][ xVoziloID ][ 3 ] == -1 ) {
if( PlayerInfo[playerid][ xDonatorSlot ] == true ) { }
else return SendErrorMessage( playerid, "Svi slotovi vozila su vam zauzeti." );
}
else return SendErrorMessage( playerid, "Svi slotovi vozila su vam zauzeti." );

    new as = GetNearestSalon( playerid );
if( GetNearestSalon( playerid ) == -1 ) return SendErrorMessage( playerid, "Nisi na pickupu auto salona." );
if( AutoSalon[ as ][ AlreadyBuying ] == true ) return SendErrorMessage( playerid, "Neko vec kupuje vozilo!" );

if( PlayerInfo[playerid][ xLevel ] < 5 ) return SendErrorMessage( playerid, "Morate biti level 5+." );

    new slotid = AutoSalon[ as ][ aIzlogVeh ];
AutoSalon[ as ][ AlreadyBuying ] = true;

    PlayerBuyingAS[playerid] = as;
    ModelCar[playerid] = 0;
ClearChat( playerid, 25 );

BuyCarTDControl( playerid, true );

if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] == 0 ) {
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 7 ], "~r~Nedostupno" );
}
if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] != 0 ) {
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 7 ], "~g~Dostupno" );
}
new string[ 128 ];
format( string, sizeof( string ), "%s", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ] );
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 2 ], string );

format( string, sizeof( string ), "Cena:_$%d", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 4 ], string );

PlayerTextDrawSetPreviewModel( playerid, BuyCar[playerid][ 3 ],AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ] );
PlayerTextDrawShow( playerid, BuyCar[playerid][ 3 ] );

SetPlayerCameraPos( playerid, AutoSalon[ as ][ aCameraPos ][ 0 ], AutoSalon[ as ][ aCameraPos ][ 1 ], AutoSalon[ as ][ aCameraPos ][ 2 ] );
SetPlayerCameraLookAt( playerid, AutoSalon[ as ][ aCameraLookAt ][ 0 ], AutoSalon[ as ][ aCameraLookAt ][ 1 ], AutoSalon[ as ][ aCameraLookAt ][ 2 ] );

Banks_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Banks_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );


    SelectTextDraw( playerid, GENIUSGAMING);
return 1;
}
public OnPlayerClickPlayerTextDraw( playerid, PlayerText:playertextid ) {
    if( _:playertextid != INVALID_TEXT_DRAW ) {
        if( playertextid == BuyCar[playerid][ 5 ] ) {
          new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 ) {
      if( ModelCar[playerid] == (AutoSalon[ as ][ aMaxVehModel ]-1) ) return 1;

ModelCar[playerid]++;

                if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] == 0 ) {
                    PlayerTextDrawSetString( playerid, BuyCar[playerid][ 7 ], "~r~Nedostupno" );
                }
                if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] != 0 ) {
                    PlayerTextDrawSetString( playerid, BuyCar[playerid][ 7 ], "~g~Dostupno" );
                }

new string[ 128 ];
format( string, sizeof( string ), "%s", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ] );
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 2 ], string );

format( string, sizeof( string ), "Cena:_$%d", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 4 ], string );

PlayerTextDrawSetPreviewModel( playerid, BuyCar[playerid][ 3 ],AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ] );
PlayerTextDrawShow( playerid, BuyCar[playerid][ 3 ] );

SetPlayerCameraPos( playerid, AutoSalon[ as ][ aCameraPos ][ 0 ], AutoSalon[ as ][ aCameraPos ][ 1 ], AutoSalon[ as ][ aCameraPos ][ 2 ] );
SetPlayerCameraLookAt( playerid, AutoSalon[ as ][ aCameraLookAt ][ 0 ], AutoSalon[ as ][ aCameraLookAt ][ 1 ], AutoSalon[ as ][ aCameraLookAt ][ 2 ] );

Banks_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Banks_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

    SelectTextDraw( playerid, GENIUSGAMING);
}
return true;
}

      if( playertextid == BuyCar[playerid][ 5 ] ) {
          new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 ) {
      if( ModelCar[playerid] == 0 ) return 1;
ModelCar[playerid]--;

                if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] == 0 ) {
                    PlayerTextDrawSetString( playerid, BuyCar[playerid][ 7 ], "~r~Nedostupno" );
                }
                if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] != 0 ) {
                    PlayerTextDrawSetString( playerid, BuyCar[playerid][ 7 ], "~g~Dostupno" );
                }

new string[ 128 ];
format( string, sizeof( string ), "%s", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ] );
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 2 ], string );

format( string, sizeof( string ), "Cena:_$%d", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[playerid][ 4 ], string );

PlayerTextDrawSetPreviewModel( playerid, BuyCar[playerid][ 3 ],AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ] );
PlayerTextDrawShow( playerid, BuyCar[playerid][ 3 ] );

SetPlayerCameraPos( playerid, AutoSalon[ as ][ aCameraPos ][ 0 ], AutoSalon[ as ][ aCameraPos ][ 1 ], AutoSalon[ as ][ aCameraPos ][ 2 ] );
SetPlayerCameraLookAt( playerid, AutoSalon[ as ][ aCameraLookAt ][ 0 ], AutoSalon[ as ][ aCameraLookAt ][ 1 ], AutoSalon[ as ][ aCameraLookAt ][ 2 ] );

Banks_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Banks_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

    SelectTextDraw( playerid, GENIUSGAMING);
}
return true;
}
if( playertextid == BuyCar[playerid][ 8 ] ) {
new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 ) {
AutoSalon[ as ][ AlreadyBuying ] = false;

    PlayerBuyingAS[playerid] = -1;
ModelCar[playerid] = 0;

    Banks_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
    VehicleInfo[ slotid ][ vID ] = Banks_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

BuyCarTDControl( playerid, false );
TogglePlayerControllable( playerid, true );

SetCameraBehindPlayer( playerid );
CancelSelectTextDraw( playerid );
}
return true;
}
if( playertextid == BuyCar[playerid][ 9 ] )  {

    new as = GetNearestSalon( playerid );
if( as != -1 ) {

strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );

format( globalstring, sizeof( globalstring ),"{FFFFFF}Da li ste sigurni da zelite kupiti vozilo {ff6600}%s.\n", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ] );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ),"{FFFFFF}Cena: {ff6600}$%d\n", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]- 400 ][ 1 ] );
strcat( DialogStrgEx, globalstring );

ShowPlayerDialog( playerid, dialog_VEHMONEYBUY, DSMSG, D_NASLOV, DialogStrgEx, "Kupi", D_ODUSTANI );
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));


            }
return true;
}
else if( dialogid == dialog_VEHMONEYBUY ) {

    if( response ) {

        new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 ) {
    if( ServerInfo[ BrojKreiranihVozila ] > MaxBrojKreiranih ) return SCM( playerid, SVETLOCRVENA, "| GG:AC | Nemoguce je trenutno kupiti vozilo, limit vozila na serveru je dosegnut.");
    if( PlayerInfo[ playerid ][ xNovac ] < VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]- 400 ][ 1 ] ) return SendErrorMessage( playerid, "Nemas dovoljno novca." );

                if( PlayerInfo[playerid][ xVoziloID ][ 0 ] == -1 ) { }
                else if( PlayerInfo[playerid][ xVoziloID ][ 1 ] == -1 ) { }
                else if( PlayerInfo[playerid][ xVoziloID ][ 2 ] == -1 ) { }
                else if( PlayerInfo[playerid][ xVoziloID ][ 3 ] == -1 ) {
if( PlayerInfo[playerid][ xDonatorSlot ] == true ) { }
else return SendErrorMessage( playerid, "Svi slotovi vozila su vam zauzeti." );
}
else return SendErrorMessage( playerid, "Svi slotovi vozila su vam zauzeti." );

    if( PlayerInfo[playerid][ xLevel ] < 5 ) return SendErrorMessage( playerid, "Morate biti level 5+ da bi ste kupili vozilo." );

if( AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ] == 0 ) return SendErrorMessage( playerid, "Nemamo vise ovih modela u prodaji." );

for( new i = 1; i < MAX_CARS; i++ ) {
    new fileauta[ 40 ];
format(fileauta, sizeof( fileauta ), V_FILE, i);
if( !fexist( fileauta ) ) {
VehicleInfo[ i ][ vOwned ] = 1;
VehicleInfo[ i ][ vNeaktivnost ] = 0;
VehicleInfo[ i ][ vPrice ] = VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]- 400 ][ 1 ];
strmid( VehicleInfo[ i ][ vOwner ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), 32);
VehicleInfo[ i ][ vLocked ] = 0;
VehicleInfo[ i ][ vLokacijaX ] = AutoSalon[ as ][ aVehBuyedPos ][ 0 ];
VehicleInfo[ i ][ vLokacijaY ] = AutoSalon[ as ][ aVehBuyedPos ][ 1 ];
VehicleInfo[ i ][ vLokacijaZ ] = AutoSalon[ as ][ aVehBuyedPos ][ 2 ];
VehicleInfo[ i ][ vLokacijaA ] = AutoSalon[ as ][ aVehBuyedPos ][ 3 ];
VehicleInfo[ i ][ vVirtualWorld ] = 0;
VehicleInfo[ i ][ vInterior ] = 0;
VehicleInfo[ i ][ vUsage ] = PRIVATNO_VOZILO;
VehicleInfo[ i ][ vJob ] = 0;
VehicleInfo[ i ][ vOrganization ] = 0;
VehicleInfo[ i ][ vColor1 ] = 0;
VehicleInfo[ i ][ vColor2 ] = 0;
VehicleInfo[ i ][ vModel ] = AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ];
VehicleInfo[ i ][ vReg ] = 0;
VehicleInfo[ i ][ vTeh ] = 0;
VehicleInfo[ i ][ vGPS ] = 0;
VehicleInfo[ i ][ vOsiguranje ] = 5;
VehicleInfo[ i ][ vLock ] = 0;
VehicleInfo[ i ][ vAlarm ] = 0;
VehicleInfo[ i ][ vTuned ] = 0;
VehicleInfo[ i ][ vNeon ] = 0;
VehicleInfo[ i ][ vImobilizator ] = 0;
VehicleInfo[ i ][ vSpoiler ] = 0;
VehicleInfo[ i ][ vHood ] = 0;
VehicleInfo[ i ][ vRoof ] = 0;
VehicleInfo[ i ][ vSkirt ] = 0;
VehicleInfo[ i ][ vLamps ] = 0;
VehicleInfo[ i ][ vNitro ] = 0;
VehicleInfo[ i ][ vExhaust ] = 0;
VehicleInfo[ i ][ vWheels ] = 0;
VehicleInfo[ i ][ vStereo ] = 0;
VehicleInfo[ i ][ vHydraulics ] = 0;
VehicleInfo[ i ][ vFrontBumper ] = 0;
VehicleInfo[ i ][ vRearBumper ] = 0;
VehicleInfo[ i ][ vVents ] = 0;
VehicleInfo[ i ][ vPaintJob ] = 255;
VehicleInfo[ i ][ vProvera ] = i;
VehicleInfo[ i ][ vDrug ][ 0 ] = 0; VehicleInfo[ i ][ vDrug ][ 1 ] = 0; VehicleInfo[ i ][ vDrug ][ 2 ] = 0; VehicleInfo[ i ][ vDrug ][ 3 ] = 0; VehicleInfo[ i ][ vDrug ][ 4 ] = 0; VehicleInfo[ i ][ vDrug ][ 5 ] = 0;
VehicleInfo[ i ][ vDrugCode ][ 0 ] = 0; VehicleInfo[ i ][ vDrugCode ][ 1 ] = 0; VehicleInfo[ i ][ vDrugCode ][ 2 ] = 0; VehicleInfo[ i ][ vDrugCode ][ 3 ] = 0; VehicleInfo[ i ][ vDrugCode ][ 4 ] = 0; VehicleInfo[ i ][ vDrugCode ][ 5 ] = 0;
                VehicleInfo[ i ][ vMelee ] = 0; VehicleInfo[ i ][ vWeap1 ] = 0; VehicleInfo[ i ][ vAmmo1 ] = 0; VehicleInfo[ i ][ vWeap2 ] = 0; VehicleInfo[ i ][ vAmmo2 ] = 0;
                VehicleInfo[ i ][ vGajbica ][ 0 ] = -1; VehicleInfo[ i ][ vGajbica ][ 1 ] = -1; VehicleInfo[ i ][ vGajbica ][ 2 ] = -1; VehicleInfo[ i ][ vGajbica ][ 3 ] = -1; VehicleInfo[ i ][ vGajbica ][ 4 ] = -1;
VehicleInfo[ i ][ vGajbicaAmmount ][ 0 ] = 0; VehicleInfo[ i ][ vGajbicaAmmount ][ 1 ] = 0; VehicleInfo[ i ][ vGajbicaAmmount ][ 2 ] = 0; VehicleInfo[ i ][ vGajbicaAmmount ][ 3 ] = 0; VehicleInfo[ i ][ vGajbicaAmmount ][ 4 ] = 0;
VehicleInfo[ i ][ vID ] = Banks_CreateVehicle( i, PRIVATNO_VOZILO, -1, -1, VehicleInfo[ i ][ vModel ], VehicleInfo[ i ][ vLokacijaX ], VehicleInfo[ i ][ vLokacijaY ], VehicleInfo[ i ][ vLokacijaZ ]+1.0, VehicleInfo[ i ][ vLokacijaA ], VehicleInfo[ i ][ vColor1 ], VehicleInfo[ i ][ vColor2 ], 300000 );
                        LinkVehicleToInterior( VehicleInfo[ i ][ vID ], VehicleInfo[ i ][ vInterior ] );
                SetVehicleVirtualWorld( VehicleInfo[ i ][ vID ], VehicleInfo[ i ][ vVirtualWorld ] );
VehicleInfo[ i ][ vFuel ] = getAmountFuel( VehicleInfo[ i ][ vID ] ); vCanDrive[ VehicleInfo[ i ][ vID ] ] = 1; Fuel[ VehicleInfo[ i ][ vID ] ] = getAmountFuel( VehicleInfo[ i ][ vID ] );
SetVehicleNumberPlate( VehicleInfo[ i ][ vID ], "NEMA" ); UnLockCar( VehicleInfo[ i ][ vID ] );
            SaveVehicle( i );
                carspawntimer = 1; ResetVehicleStatistics( VehicleInfo[ i ][ vID ] );
      SetTimer("AntiSpawnCrash", 3000, 0);


      SetVehicleParamsEx( VehicleInfo[ i ][ vID ], 0, 0, 0, VehicleInfo[ i ][ vLocked ], 0, 0, 0 );
                if( IsVehicleBajs( VehicleInfo[ i ][ vID ] ) ) {
SetVehicleParamsEx( VehicleInfo[ i ][ vID ], 1, 0, 0, VehicleInfo[ i ][ vLocked ], 0, 0, 0 );
}

      DajIgracuNovac( playerid, -VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]- 400 ][ 1 ] );

      if( PlayerInfo[playerid][ xVoziloID ][ 0 ] == -1 ){ PlayerInfo[playerid][ xVoziloID ][ 0 ] = i; }
else if( PlayerInfo[playerid][ xVoziloID ][ 1 ] == -1 ) { PlayerInfo[playerid][ xVoziloID ][ 1 ] = i; }
else if( PlayerInfo[playerid][ xVoziloID ][ 2 ] == -1 ) { PlayerInfo[playerid][ xVoziloID ][ 2 ] = i; }
else if( PlayerInfo[playerid][ xVoziloID ][ 3 ] == -1 ) { PlayerInfo[playerid][ xVoziloID ][ 3 ] = i; }
                SavePlayer( playerid );

      new string[ 128 ];
format( string, sizeof( string ), "Igrac %s je kupio vozilo %s u salonu ID %d", ImeIgraca( playerid ), ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[playerid] ]-400 ], as );
LogSave( "Ostalo/LogKupiVozilo.log", string );

                        AutoSalon[ as ][ aVehAmmount ][ ModelCar[playerid] ]--;
      AutoSalon[ as ][ AlreadyBuying ] = false;
      SaveSalon( as );

    PlayerBuyingAS[playerid] = -1;
ModelCar[playerid] = 0;

    Banks_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
    VehicleInfo[ slotid ][ vID ] = Banks_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

BuyCarTDControl( playerid, false );
TogglePlayerControllable( playerid, true );

KillTimer(ASTimer[playerid]);

SetCameraBehindPlayer( playerid );
CancelSelectTextDraw( playerid );
      SendInfoMessage( playerid, "Uspjesno ste kupili vozilo, oznaceno vam je na raderu markerom." );

      Banks_SetPlayerCheckpoint( playerid, VehicleInfo[ i ][ vLokacijaX ], VehicleInfo[ i ][ vLokacijaY ], VehicleInfo[ i ][ vLokacijaZ ], 5.0 );
CheckpointStatus[playerid] = 15;
break;
}
}
}
    }
    else if( !response ) {

        new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 ) {
AutoSalon[ as ][ AlreadyBuying ] = false;

    PlayerBuyingAS[playerid] = -1;
ModelCar[playerid] = 0;

    Banks_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
    VehicleInfo[ slotid ][ vID ] = Banks_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], AutoSalon[ as ][ aVehModel ][ 0 ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], -1, -1, -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

BuyCarTDControl( playerid, false );
TogglePlayerControllable( playerid, true );

KillTimer(ASTimer[playerid]);

SetCameraBehindPlayer( playerid );
CancelSelectTextDraw( playerid );
}
    }
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem):
Poslednja Izmena: Jul 18, 2024, 20:47:43 POSLE PODNE od Banks22