Oko TD

Započeo Carera, Mart 23, 2019, 17:58:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

 :-\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: [pawn] [/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Slika/video ingame problema(obavezno ako je ingame problem): /

Zna li neko, da vam sad ne dajem kod za svaki td, do cega moze biti? ATH je mod

Ne mozemo ti pomoc bez koda ili slike, preporucujem da ostavis OnPlayerClickPlayerTextDraw funkciju pa cemo vidit sta se moze uradit poz.
Map Gallery
-House Interior- (click) - For Sale-

Citat: Jack1337 poslato Mart 24, 2019, 01:21:07 PRE PODNE
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
[pawn] 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;
      }
[/pawn]


Citat: á´ á´‡á´...ʀᴀɴ.ᴀᴍx poslato Mart 24, 2019, 19:00:29 POSLE PODNE
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 :)

Citat: Carera poslato Mart 25, 2019, 17:44:56 POSLE PODNE
      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 //
[pawn]if( _:playertextid != INVALID_TEXT_DRAW )[/pawn]

Citat: á´ á´‡á´...ʀᴀɴ.ᴀᴍx poslato Mart 25, 2019, 23:31:46 POSLE PODNE
Pokusaj da izbrises ovo ili pod //
[pawn]if( _:playertextid != INVALID_TEXT_DRAW )[/pawn]
Isto sve, ne radi ni auto salon, ni register itd.
Citat: á´ á´‡á´...ʀᴀɴ.ᴀᴍx poslato Mart 25, 2019, 23:31:46 POSLE PODNE
Pokusaj da izbrises ovo ili pod //
[pawn]if( _:playertextid != INVALID_TEXT_DRAW )[/pawn]
Isto opet, uglavnom ni jedan click textdraw ne radi..

[pawn]if(_:clickedid == INVALID_TEXT_DRAW)
    {
        //
        return 1;
    }[/pawn]

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

Citat: youngdeal poslato Mart 27, 2019, 22:43:41 POSLE PODNE
[pawn]if(_:clickedid == INVALID_TEXT_DRAW)
    {
        //
        return 1;
    }[/pawn]
Ne pise nista koliko sam vidio, uglavnom ni jedan clicktextdraw ne radi

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