Textdraw geht nicht weg

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi,


    habe ein kleines Problem.
    Und zwar geht das Textdraw nicht weg, beim Austeigen.


    if(newstate == PLAYER_STATE_DRIVER)
    {
    TextDrawShowForPlayer(playerid,SpeedoBox);
    TextDrawShowForPlayer(playerid,SpeedoVehText);
    TextDrawShowForPlayer(playerid,SpeedoVeh[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoKMHText);
    TextDrawShowForPlayer(playerid,SpeedoKMH[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoTankText);
    //TextDrawShowForPlayer(playerid,SpeedoTank[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoHealth[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoHealthText);
    }
    if(oldstate == PLAYER_STATE_DRIVER)
    {
    TextDrawHideForPlayer(playerid,SpeedoBox);
    TextDrawHideForPlayer(playerid,SpeedoVehText);
    TextDrawHideForPlayer(playerid,SpeedoVeh[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoKMHText);
    TextDrawHideForPlayer(playerid,SpeedoKMH[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoTankText);
    //TextDrawHideForPlayer(playerid,SpeedoTank[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoHealth[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoHealthText);
    }

  • if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawShowForPlayer(playerid,SpeedoBox);
    TextDrawShowForPlayer(playerid,SpeedoVehText);
    TextDrawShowForPlayer(playerid,SpeedoVeh[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoKMHText);
    TextDrawShowForPlayer(playerid,SpeedoKMH[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoTankText);
    //TextDrawShowForPlayer(playerid,SpeedoTank[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoHealth[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoHealthText);
    }
    if(oldstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForPlayer(playerid,SpeedoBox);
    TextDrawHideForPlayer(playerid,SpeedoVehText);
    TextDrawHideForPlayer(playerid,SpeedoVeh[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoKMHText);
    TextDrawHideForPlayer(playerid,SpeedoKMH[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoTankText);
    //TextDrawHideForPlayer(playerid,SpeedoTank[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoHealth[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoHealthText);
    }


    versuch mal so

  • versuch mal so


    Das ist ja mal totaler Schwachsinn ^^


    Hier, mache es mal so:


    if(newstate == PLAYER_STATE_DRIVER)
    {
    TextDrawShowForPlayer(playerid,SpeedoBox);
    TextDrawShowForPlayer(playerid,SpeedoVehText);
    TextDrawShowForPlayer(playerid,SpeedoVeh[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoKMHText);
    TextDrawShowForPlayer(playerid,SpeedoKMH[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoTankText);
    //TextDrawShowForPlayer(playerid,SpeedoTank[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoHealth[playerid]);
    TextDrawShowForPlayer(playerid,SpeedoHealthText);
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForPlayer(playerid,SpeedoBox);
    TextDrawHideForPlayer(playerid,SpeedoVehText);
    TextDrawHideForPlayer(playerid,SpeedoVeh[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoKMHText);
    TextDrawHideForPlayer(playerid,SpeedoKMH[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoTankText);
    //TextDrawHideForPlayer(playerid,SpeedoTank[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoHealth[playerid]);
    TextDrawHideForPlayer(playerid,SpeedoHealthText);
    }


    mfg. :thumbup:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S

  • Komischer weiße geht das immer noch nicht weg.