TextDraw not showing up
#1

Hello. I have created a speed-o-meter textdraw but it doesn't seem to want to show when I enter a vehicle.

This is up top with my other working textdraws
pawn Код:
new Text:SpeedTD; // Speed TextDraw
Then this is with my other working textdraws
pawn Код:
// Speed TextDraw
SpeedTD = TextDrawCreate(487.000000, 425.000000, "Speed");
TextDrawBackgroundColor(SpeedTD, 255);
TextDrawFont(SpeedTD, 1);
TextDrawLetterSize(SpeedTD, 0.500000, 1.300000);
TextDrawColor(SpeedTD, -1);
TextDrawSetOutline(SpeedTD, 1);
TextDrawSetProportional(SpeedTD, 1);
And this..
pawn Код:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // Speed TextDraw
{
    new string[64], speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 0);
    format(string, sizeof(string), "Speed: %d MPH", speed);
    TextDrawSetString(SpeedTD, string);
}
Is under
pawn Код:
public OnPlayerUpdate(playerid)
{
There are no errors on compile and can't see how this can't work, looked through it loads of times.
If someone could help me I will +rep, been at it for hours! Thanks.
Reply


Messages In This Thread
TextDraw not showing up - by WinterAce - 15.12.2012, 15:50
Re: TextDraw not showing up - by Lordzy - 15.12.2012, 15:58
Re: TextDraw not showing up - by Mean - 15.12.2012, 15:58
Re: TextDraw not showing up - by [HK]Ryder[AN] - 15.12.2012, 15:58
Re: TextDraw not showing up - by WinterAce - 15.12.2012, 16:34
Re: TextDraw not showing up - by marsmubarak - 06.07.2013, 18:56
Re: TextDraw not showing up - by SwisherSweet - 06.07.2013, 19:01

Forum Jump:


Users browsing this thread: 3 Guest(s)