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


Messages In This Thread
TD automaticly clicks it self - by ancezas - 26.02.2014, 08:49
Re: TD automaticly clicks it self - by ancezas - 26.02.2014, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)