TextDraw problem.
#10

Meh, this is only fixable like this:

pawn Код:
//===========================[TextDraw  creating]===========================================
//===========================[CREDITS: Ellis / FanKurT]===========================================
stock ShowInfoText( playerid, text[ ], time, sound = true )
{
    // Funkcija: ShowInfoText( playerid, text[ ] )
    // Parodys юaidлjui kvadratukа, su informacija

    if ( InfoTextOn[ playerid ] == 0 )
    {
        InfoText[ playerid ] = CreateInfoText( text );
        TextDrawShowForPlayer( playerid, InfoText[ playerid ] );
        InfoText[ playerid ] = 1;
        SetTimerEx           ( "HideInfoText", time, false, "d", playerid );
    }

    if ( sound )
        PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 );
}
public HideInfoText( playerid )
{
    // Funkcija: HideInfoText( playerid )
    // Paslлps info tekstа юaidлjui

    if ( InfoTextOn[ playerid ] == 1 )
    {
        TextDrawHideForPlayer( playerid, InfoText[ playerid ] );
        TextDrawDestroy      ( InfoText[ playerid ] );
        InfoTextOn[ playerid ] = 0;
    }

    return true;
}
and add at top:

pawn Код:
new InfoTextOn[MAX_PLAYERS];
Should work then.
Reply


Messages In This Thread
TextDraw problem. - by Gh0sT_ - 06.10.2010, 14:47
Re: TextDraw problem. - by Cameltoe - 06.10.2010, 14:54
Re: TextDraw problem. - by Gh0sT_ - 06.10.2010, 15:00
Re: TextDraw problem. - by Jeffry - 06.10.2010, 15:02
Re: TextDraw problem. - by Gh0sT_ - 06.10.2010, 15:03
Re: TextDraw problem. - by Jeffry - 06.10.2010, 15:10
Re: TextDraw problem. - by Gh0sT_ - 06.10.2010, 15:11
Re: TextDraw problem. - by Jeffry - 06.10.2010, 15:28
Re: TextDraw problem. - by Gh0sT_ - 06.10.2010, 15:38
Re: TextDraw problem. - by Jeffry - 06.10.2010, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)