TD automaticly clicks it self
#1

when the code is activateded and call selectible TD it's automaticly clicks it self, i don't even see it.
Sorry for bad english
Here is codes:
pawn Код:
if( clickedid == Namas6 )
        {
            TextDrawHideForPlayer( playerid, Namas0 );
            TextDrawHideForPlayer( playerid, Namas1 );
            TextDrawHideForPlayer( playerid, Namas2 );
            TextDrawHideForPlayer( playerid, Namas3 );
            TextDrawHideForPlayer( playerid, Namas4 );
            TextDrawHideForPlayer( playerid, Namas5 );
            TextDrawHideForPlayer( playerid, Namas6 );
            CancelSelectTextDraw( playerid );
            if( zInfo[ playerid ][ yraname ] > 0 )
            {
                if( GetPlayerInterior( playerid ) > 0 )
                {
                    new Namas = zInfo[ playerid ][ yraname ];
                    SetPlayerPos( playerid, nInfo[ Namas ][ pickupX ], nInfo[ Namas ][ pickupY ], nInfo[ Namas ][ pickupZ ] );
                    SetPlayerInterior( playerid, 0 );
                    SetPlayerVirtualWorld( playerid, 0 );
                    zInfo[ playerid ][ yraname ] = 0;
                    zInfo[ playerid ][ currenthouse ] = 0;
                    SetCameraBehindPlayer( playerid );
                    TogglePlayerControllable( playerid, true );
                }
            }
        }
pawn Код:
Namas6 = TextDrawCreate( 310.000000, 380.000000, "Iseiti" );
        TextDrawBackgroundColor( Namas6, 255 );
        TextDrawAlignment( Namas6, 1 );
        TextDrawFont( Namas6, 1 );
        TextDrawTextSize( Namas6, 10.000000, 10.0 );
        TextDrawLetterSize( Namas6, 0.500000, 2.000000 );
        TextDrawColor( Namas6, -16776961 );
        TextDrawSetOutline( Namas6, 0 );
        TextDrawSetProportional( Namas6, 1 );
        TextDrawSetShadow( Namas6, 1 );
        TextDrawUseBox( Namas6, false );
        TextDrawBoxColor( Namas6, 0 );
        TextDrawSetSelectable( Namas6, 1 );
Reply
#2

i deleted this script and others TD not even apear in game code of those TD's:
pawn Код:
SetPlayerPos( playerid, 2260.76, -1210.45, 1049.02 );
                    SetPlayerInterior( playerid, 10 );
                    TogglePlayerControllable( playerid, false );
                    new Namass = GetHouseID( playerid );
                    SetPlayerVirtualWorld( playerid, nInfo[ Namass ][ namoID ] );
                    zInfo[ playerid ][ currenthouse ] = Namass;
                    zInfo[ playerid ][ yraname ] = Namass;
                   
                    new msg[ 256 ];
                    format( msg, sizeof( msg ), "Namo Kaina: ~r~%i~g~LT", nInfo[ Namass ][ namoKaina ] );
                    TextDrawSetString( Namas0, msg );
                    TextDrawShowForPlayer( playerid, Namas0 );
                   
                    format( msg, sizeof( msg ), "Interjiero Kaina: ~r~%i~g~LT", nInfo[ Namass ][ namoKaina ] );
                    TextDrawSetString( Namas1, msg );
                    TextDrawShowForPlayer( playerid, Namas1 );
pawn Код:
Namas0 = TextDrawCreate( 220.000000, 50.000000, "Namo Kaina: 50000LT" );
        TextDrawBackgroundColor( Namas0, 255 );
        TextDrawFont( Namas0, 1 );
        TextDrawLetterSize( Namas0, 0.500000, 1.000000 );
        TextDrawColor( Namas0, -1 );
        TextDrawSetOutline( Namas0, 0 );
        TextDrawSetProportional( Namas0, 1 );
        TextDrawSetShadow( Namas0, 1 );
        TextDrawSetSelectable( Namas0, 0 );

        Namas1 = TextDrawCreate( 212.000000, 65.000000, "Interjiero Kaina: 3000LT" );
        TextDrawBackgroundColor( Namas1, 255 );
        TextDrawFont( Namas1, 1 );
        TextDrawLetterSize( Namas1, 0.500000, 1.000000 );
        TextDrawColor( Namas1, -1 );
        TextDrawSetOutline( Namas1, 0 );
        TextDrawSetProportional( Namas1, 1 );
        TextDrawSetShadow( Namas1, 1 );
        TextDrawSetSelectable( Namas1, 0 );
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)