SA-MP Forums Archive
TextDraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw (/showthread.php?tid=580459)



TextDraw - nezo2001 - 05.07.2015

The Textdraw doesn't show more than one time once the timer starts then it hide
PHP код:
IncreaseSecondsForTaxi[playerid] = SetTimerEx("IncreaseTime"1000true"i"playerid); 
PHP код:
public IncreaseTime(playerid)
{
    if(
TaxiTextShowed[playerid] == true) return PlayerTextDrawHide(playeridTextdraw1);
    
TaxiTimeString[playerid]++;
    new 
string[128];
    
format(stringsizeof(string), "Time: %i"TaxiTimeString[playerid]);
    
Textdraw1 CreatePlayerTextDraw(playerid172.500000377.066741string);
    
PlayerTextDrawLetterSize(playeridTextdraw10.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextdraw11);
    
PlayerTextDrawColor(playeridTextdraw1, -1);
    
PlayerTextDrawSetShadow(playeridTextdraw10);
    
PlayerTextDrawSetOutline(playeridTextdraw11);
    
PlayerTextDrawBackgroundColor(playeridTextdraw151);
    
PlayerTextDrawFont(playeridTextdraw11);
    
PlayerTextDrawSetProportional(playeridTextdraw11);
    
PlayerTextDrawShow(playeridTextdraw1);
    if(
TaxiTextShowed[playerid] == false) return TaxiTextShowed[playerid] = true;
    return 
1;




Re: TextDraw - dusk - 05.07.2015

You never set TaxiTextShowed[playerid] to false. So after the first call, it will never pass this line
pawn Код:
if(TaxiTextShowed[playerid] == true)



Re: TextDraw - GTLS - 05.07.2015

Yes, try changing it to true!!