TextDraw
#1

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;

Reply
#2

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

Yes, try changing it to true!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)