05.07.2015, 15:39
The Textdraw doesn't show more than one time once the timer starts then it hide
PHP код:
IncreaseSecondsForTaxi[playerid] = SetTimerEx("IncreaseTime", 1000, true, "i", playerid);
PHP код:
public IncreaseTime(playerid)
{
if(TaxiTextShowed[playerid] == true) return PlayerTextDrawHide(playerid, Textdraw1);
TaxiTimeString[playerid]++;
new string[128];
format(string, sizeof(string), "Time: %i", TaxiTimeString[playerid]);
Textdraw1 = CreatePlayerTextDraw(playerid, 172.500000, 377.066741, string);
PlayerTextDrawLetterSize(playerid, Textdraw1, 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw1, 1);
PlayerTextDrawColor(playerid, Textdraw1, -1);
PlayerTextDrawSetShadow(playerid, Textdraw1, 0);
PlayerTextDrawSetOutline(playerid, Textdraw1, 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw1, 51);
PlayerTextDrawFont(playerid, Textdraw1, 1);
PlayerTextDrawSetProportional(playerid, Textdraw1, 1);
PlayerTextDrawShow(playerid, Textdraw1);
if(TaxiTextShowed[playerid] == false) return TaxiTextShowed[playerid] = true;
return 1;
}