07.09.2015, 19:29
Right, I've spent days at this, ******d and looked at over 20 threads about similar matters on the forums and all of them do not have any solution to it.
So here I am.
I have created 4 textdraws in the bottom right corner, they all have the correct dimensions and all fit within the screen (I know this because it used to appear). They display as
Speed: (Speed)
Fuel: (Fuel)
Example below of when it DID WORK

Then suddenly... The Speed just vanished one day and no matter what I try to do, it will NOT re-appear. Any suggestions?

Code:
Top of script
Under 'OnPlayerConnect'
Under OnPlayerStateChange
Any help would be good, as you can see EVERY other textdraw appears as normal for everyone in the server, except for Speed: which randomly vanished.
I also tried removing other textdraws in case it was to do with the amount on screen however, the only ones displayed are these ones and an in-game clock.
Many thanks.
So here I am.
I have created 4 textdraws in the bottom right corner, they all have the correct dimensions and all fit within the screen (I know this because it used to appear). They display as
Speed: (Speed)
Fuel: (Fuel)
Example below of when it DID WORK

Then suddenly... The Speed just vanished one day and no matter what I try to do, it will NOT re-appear. Any suggestions?

Code:
Top of script
pawn Код:
new PlayerText:SpeedText[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW,...},
PlayerText:FuelText[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW,...};
pawn Код:
SpeedText[playerid] = CreatePlayerTextDraw(playerid, 380.000000, 432.000000, "~r~Speed:");
PlayerTextDrawBackgroundColor(playerid, SpeedText[playerid], 255);
PlayerTextDrawFont(playerid, SpeedText[playerid], 1);
PlayerTextDrawLetterSize(playerid, SpeedText[playerid], 0.509999, 1.200000);
PlayerTextDrawColor(playerid, SpeedText[playerid], 559817215);
PlayerTextDrawSetOutline(playerid, SpeedText[playerid], 1);
PlayerTextDrawSetProportional(playerid, SpeedText[playerid], 1);
PlayerTextDrawHide(playerid, SpeedText[playerid]);
FuelText[playerid] = CreatePlayerTextDraw(playerid, 550.000000, 432.000000, "~b~Fuel:");
PlayerTextDrawBackgroundColor(playerid, FuelText[playerid], 255);
PlayerTextDrawFont(playerid, FuelText[playerid], 1);
PlayerTextDrawLetterSize(playerid, FuelText[playerid], 0.539999, 1.200000);
PlayerTextDrawColor(playerid, FuelText[playerid], -353718529);
PlayerTextDrawSetOutline(playerid, FuelText[playerid], 1);
PlayerTextDrawSetProportional(playerid, FuelText[playerid], 1);
PlayerTextDrawHide(playerid, FuelText[playerid]);
Under OnPlayerStateChange
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
PlayerTextDrawShow(playerid, SpeedText[playerid]);
PlayerTextDrawShow(playerid, FuelText[playerid]);
}
Any help would be good, as you can see EVERY other textdraw appears as normal for everyone in the server, except for Speed: which randomly vanished.
I also tried removing other textdraws in case it was to do with the amount on screen however, the only ones displayed are these ones and an in-game clock.
Many thanks.


