Oko TD

Započeo Carera
23. Mar. 2019. Zaključano
1,039
pregleda
10
postova
AdmirTM
4
Enforcer
23. Mar. 2019.
😐Problem(error/warning): Ovako, do nedavno sve je bilo uredu, nije nista dirano vezano za taj kod, kada hocu da kupim vozilo ili kada hocu da se registrujem ne desava se nista kad kliknem na lozinku ili na buycar TD
Dio skripte:
 

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
/

Slika/video ingame problema(obavezno ako je ingame problem): /
AdmirTM
4
Enforcer
23. Mar. 2019.
Zna li neko, da vam sad ne dajem kod za svaki td, do cega moze biti? ATH je mod
Jack1337
4
Shot Caller
24. Mar. 2019.
Ne mozemo ti pomoc bez koda ili slike, preporucujem da ostavis OnPlayerClickPlayerTextDraw funkciju pa cemo vidit sta se moze uradit poz.
AdmirTM
4
Enforcer
24. Mar. 2019.
Jack1337 wrote on March 24, 2019, 12:21 am:
Ne mozemo ti pomoc bez koda ili slike, preporucujem da ostavis OnPlayerClickPlayerTextDraw funkciju pa cemo vidit sta se moze uradit poz.

Eto auto salon, ali ne radi ni
 public OnPlayerClickPlayerTextDraw( playerid, PlayerText:playertextid )
{
    if( _:playertextid != INVALID_TEXT_DRAW )
{
    if( playertextid == BuyCar[ playerid ][ 1 ] )
{
        new as = GetNearestSalon( playerid ), slotid = AutoSalon[ as ][ aIzlogVeh ];
if( as != -1 )
{
      if( ModelCar[ playerid ] == (AutoSalon[ as ][ aMaxVehModel ]-1) ) return 1;

ModelCar[ playerid ]++;

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

format( string, sizeof( string ), "~w~%d$", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 7 ], string );

                format( string, sizeof( string ), "~w~%dg", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 2 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 11 ], string );

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

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

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

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 ] );

Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], AutoSalonBojaVozila[ playerid ], AutoSalonBojaVozila[ playerid ], -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

//==============================================================================//////
if( VoziloJeDizel( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Dizel" );
}
else if( VoziloJeBenzin( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Benzin" );
}
  else if( VoziloJeKerozin( VehicleInfo[ slotid ][ vID ] ) )
  {
      PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Kerozin" );
  }
  else if( VoziloNemaGorivo( VehicleInfo[ slotid ][ vID ] ) )
  {
      PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~N/A" );
  }
  //==============================================================================///////
  if( VoziloJe2Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~2" );
}
else if( VoziloJe4Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~4" );
}
  else if( VoziloNemaVrata( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~0" );
}
//==============================================================================////////////////
if( SportVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~sportsko" );
}
else if( PutnickoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~putnicko" );
}
else if( IsVehicleMotor( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~motocikl" );
}
else if( IsVehicleBajs( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~bicikl" );
}
else if( IsVehicleLetelica( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~letilica" );
}
else if( IsVehicleBrod( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~plovilo" );
}
  else if( TeretnoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~teretno" );
}
else
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~N/A" );
}
//==============================================================================//////////

new Cboja1 = AutoSalonBojaVozila[ playerid ];
                PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ],Cboja1, Cboja1);
                PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ],Cboja1, Cboja1);
                PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ],Cboja1, Cboja1);

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

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

                format( string, sizeof( string ), "~w~%d$", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 1 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 7 ], string );

format( string, sizeof( string ), "~w~%dg", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ][ 2 ] );
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 11 ], string );

PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 5 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 5 ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 12 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 12 ] );
PlayerTextDrawSetPreviewModel( playerid, BuyCar[ playerid ][ 9 ],AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ] );
PlayerTextDrawShow( playerid, BuyCar[ playerid ][ 9 ] );

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 ] );

Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ], VehicleInfo[ slotid ][ vLokacijaX ], VehicleInfo[ slotid ][ vLokacijaY ], VehicleInfo[ slotid ][ vLokacijaZ ]+1.0, VehicleInfo[ slotid ][ vLokacijaA ], AutoSalonBojaVozila[ playerid ], AutoSalonBojaVozila[ playerid ], -1 );
    SetVehicleVirtualWorld( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aVW ] );
    LinkVehicleToInterior( VehicleInfo[ slotid ][ vID ], AutoSalon[ as ][ aInt ] );

//==============================================================================//////
if( VoziloJeDizel( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Dizel" );
}
else if( VoziloJeBenzin( VehicleInfo[ slotid ][ vID ] ) )
{
PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Benzin" );
}
  else if( VoziloJeKerozin( VehicleInfo[ slotid ][ vID ] ) )
  {
      PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~Kerozin" );
  }
  else if( VoziloNemaGorivo( VehicleInfo[ slotid ][ vID ] ) )
  {
      PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 17 ], "Gorivo: ~w~N/A" );
  }
  //==============================================================================///////
  if( VoziloJe2Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~2" );
}
else if( VoziloJe4Vrata( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~4" );
}
  else if( VoziloNemaVrata( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 18 ], "Broj vrata: ~w~0" );
}
//==============================================================================////////////////
if( SportVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~sportsko" );
}
else if( PutnickoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~putnicko" );
}
else if( IsVehicleMotor( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~motocikl" );
}
else if( IsVehicleBajs( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~bicikl" );
}
else if( IsVehicleLetelica( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~letilica" );
}
else if( IsVehicleBrod( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~plovilo" );
}
  else if( TeretnoVozilo( VehicleInfo[ slotid ][ vID ] ) )
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~teretno" );
}
else
{
    PlayerTextDrawSetString( playerid, BuyCar[ playerid ][ 19 ], "Vrsta: ~w~N/A" );
}
//==============================================================================//////////

new Cboja1 = AutoSalonBojaVozila[ playerid ];
                PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ],Cboja1, Cboja1);
                PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ],Cboja1, Cboja1);
                PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ],Cboja1, Cboja1);

    SelectTextDraw( playerid, SSBOJA );
}
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;
    AutoSalonBojaVozila[ playerid ] = -1;
ModelCar[ playerid ] = 0;

    Dimi_DestroyVehicle( VehicleInfo[ slotid ][ vID ] );
VehicleInfo[ slotid ][ vID ] = Dimi_CreateVehicle( slotid, VehicleInfo[ slotid ][ vUsage ], VehicleInfo[ slotid ][ vOrganization ], VehicleInfo[ slotid ][ vJob ], VehicleInfo[ slotid ][ vFuelProperty ], 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 );
BojaVozilaTDControl( playerid, false );
TogPlayerHud( playerid );
TogglePlayerControllable( playerid, true );

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

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

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

    strcat( DialogStrgEx, ""SS_BOJA"__________________________________________________________________\n");
format( globalstring, sizeof( globalstring ),""col_white"Da li ste sigurni da zelite kupiti vozilo "SS_BOJA"%s.\n", ImeVozila[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]-400 ] );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ),""col_white"Cena: "SS_BOJA"%dg zlata.\n", VehPrice[ AutoSalon[ as ][ aVehModel ][ ModelCar[ playerid ] ]- 400 ][ 2 ] );
strcat( DialogStrgEx, globalstring );
        strcat( DialogStrgEx, ""SS_BOJA"__________________________________________________________________");

ShowPlayerDialog( playerid, dialog_VEHGOLDBUY, DSMSG, D_NASLOV, DialogStrgEx, "Kupi", "Odustani" );
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));

            }
return true;
}
if( playertextid == BuyCar[ playerid ][ 6 ] )
{
    new as = GetNearestSalon( playerid );
if( as != -1 )
{

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

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

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

            }
return true;
}
////////////////////////////////////////////////////////////////////////
if( playertextid == ASBojaVozila[ 4 ] [ playerid ] )//crna
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 0;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);

}
return true;
}

if( playertextid == ASBojaVozila[ 5 ] [ playerid ] )//bijela
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 1;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 6 ] [ playerid ] )//svijetlo plava
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 135;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 7 ] [ playerid ] )//crvena
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 3;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 8 ] [ playerid ] )//zelenoplava
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 165;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 9 ] [ playerid ] )//pink
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 126;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 10 ] [ playerid ] )//zuta
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 6;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 11 ] [ playerid ] )//zelena
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 191;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);

}
return true;
}

if( playertextid == ASBojaVozila[ 12 ] [ playerid ] )//tamno ljubicasta
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 179;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);

}
return true;
}

if( playertextid == ASBojaVozila[ 13 ] [ playerid ] )//svijetlo zelena
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 145;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);

}
return true;
}

if( playertextid == ASBojaVozila[ 14 ] [ playerid ] )//narandjasta
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 219;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 15 ] [ playerid ] )//tamnoplava
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 93;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 16 ] [ playerid ] )//zelenoplava
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 155;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 17 ] [ playerid ] )//tamno siva
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 63;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}

if( playertextid == ASBojaVozila[ 18 ] [ playerid ] )//tamno crvena
{
  new as = GetNearestSalon( playerid );
if( as != -1 )
{
                AutoSalonBojaVozila[ playerid ] = 17;
new slotid = AutoSalon[ as ][ aIzlogVeh ];
new bojica = AutoSalonBojaVozila[ playerid ];
ChangeVehicleColor(VehicleInfo[ slotid ][ vID ], bojica, bojica);
//
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawHide(playerid, BuyCar[ playerid ][ 5 ]);

PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 12 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 9 ], bojica, bojica);
PlayerTextDrawSetPreviewVehCol(playerid, BuyCar[ playerid ][ 5 ], bojica, bojica);

PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 12 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 9 ]);
PlayerTextDrawShow(playerid, BuyCar[ playerid ][ 5 ]);
}
return true;
}
Exnas.pwn
5
Godfather
24. Mar. 2019.
Daj nam 1 BuyCar Td
AdmirTM
4
Enforcer
25. Mar. 2019.
ᴠᴇᴅʀᴀɴ.ᴀᴍx wrote on March 24, 2019, 6:00 pm:
Daj nam 1 BuyCar Td

BuyCar[ playerid ][ 1 ] = CreatePlayerTextDraw(playerid, 401.333892, 322.062164, "ld_beat:right");// OK
PlayerTextDrawLetterSize(playerid, BuyCar[ playerid ][ 1 ], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, BuyCar[ playerid ][ 1 ], 23.111101, 8.462226);
PlayerTextDrawAlignment(playerid, BuyCar[ playerid ][ 1 ], 1);
PlayerTextDrawColor(playerid, BuyCar[ playerid ][ 1 ], -1);
PlayerTextDrawSetShadow(playerid, BuyCar[ playerid ][ 1 ], 0);
PlayerTextDrawSetOutline(playerid, BuyCar[ playerid ][ 1 ], 0);
PlayerTextDrawFont(playerid, BuyCar[ playerid ][ 1 ], 4);
PlayerTextDrawSetSelectable(playerid, BuyCar[ playerid ][ 1 ], true);
Tdovi su prija radili nije nista dirano 🙂
Exnas.pwn
5
Godfather
25. Mar. 2019.
Carera wrote on March 25, 2019, 4:44 pm:
BuyCar[ playerid ][ 1 ] = CreatePlayerTextDraw(playerid, 401.333892, 322.062164, "ld_beat:right");// OK
PlayerTextDrawLetterSize(playerid, BuyCar[ playerid ][ 1 ], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, BuyCar[ playerid ][ 1 ], 23.111101, 8.462226);
PlayerTextDrawAlignment(playerid, BuyCar[ playerid ][ 1 ], 1);
PlayerTextDrawColor(playerid, BuyCar[ playerid ][ 1 ], -1);
PlayerTextDrawSetShadow(playerid, BuyCar[ playerid ][ 1 ], 0);
PlayerTextDrawSetOutline(playerid, BuyCar[ playerid ][ 1 ], 0);
PlayerTextDrawFont(playerid, BuyCar[ playerid ][ 1 ], 4);
PlayerTextDrawSetSelectable(playerid, BuyCar[ playerid ][ 1 ], true);
Tdovi su prija radili nije nista dirano 🙂

Pokusaj da izbrises ovo ili pod //
if( _:playertextid != INVALID_TEXT_DRAW )
AdmirTM
4
Enforcer
27. Mar. 2019.
ᴠᴇᴅʀᴀɴ.ᴀᴍx wrote on March 25, 2019, 10:31 pm:
Pokusaj da izbrises ovo ili pod //
if( _:playertextid != INVALID_TEXT_DRAW )

Isto sve, ne radi ni auto salon, ni register itd.
ᴠᴇᴅʀᴀɴ.ᴀᴍx wrote on March 25, 2019, 10:31 pm:
Pokusaj da izbrises ovo ili pod //
if( _:playertextid != INVALID_TEXT_DRAW )

Isto opet, uglavnom ni jedan click textdraw ne radi..
James_SmithXDl
6
OG Legend
27. Mar. 2019.
if(_:clickedid == INVALID_TEXT_DRAW)
    {
        //
        return 1;
    }


// debugaj stavi ispod ovoga
npr
if( playertextid == BuyCar[ playerid ][ 1 ] )
{
                      printf("Igrac %d - BuyCar PTD 1 test kliknuo",playerid);
                }
pa pogledaj sta radi 😄 ak ne bude ispisivalo nista ovako onda selecttextdraw te vjv zeza a ?
AdmirTM
4
Enforcer
28. Mar. 2019.
youngdeal wrote on March 27, 2019, 9:43 pm:
if(_:clickedid == INVALID_TEXT_DRAW)
    {
        //
        return 1;
    }

Ne pise nista koliko sam vidio, uglavnom ni jedan clicktextdraw ne radi

// debugaj stavi ispod ovoga
npr
if( playertextid == BuyCar[ playerid ][ 1 ] )
{
                      printf("Igrac %d - BuyCar PTD 1 test kliknuo",playerid);
                }
pa pogledaj sta radi 😄 ak ne bude ispisivalo nista ovako onda selecttextdraw te vjv zeza a ?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha