TextDraw problem.
#8

Try:

pawn Код:
//===========================[TextDraw  creating]===========================================
//===========================[CREDITS: Ellis / FanKurT]===========================================
stock ShowInfoText( playerid, text[ ], time, sound = true )
{
    // Funkcija: ShowInfoText( playerid, text[ ] )
    // Parodys юaidлjui kvadratukа, su informacija
    switch(InfoText[ playerid ])
    {
        case INVALID_TEXT_DRAW:
        {
            InfoText[ playerid ] = CreateInfoText( text );
            TextDrawShowForPlayer( playerid, InfoText[ playerid ] );
            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
    switch( InfoText[ playerid ])
    {
        case INVALID_TEXT_DRAW: {}
        default:
        {
            TextDrawHideForPlayer( playerid, InfoText[ playerid ] );
            TextDrawDestroy      ( InfoText[ playerid ] );
            InfoText[ playerid ] = INVALID_TEXT_DRAW;
        }
    }
    return true;
}
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)