Bug with Textdraw
#1

I have bug with textdraw, I've made textdraw box just inside this red frame, but box is going to the bottom of the screen, and that text WC: 0% shouldn't be there..

Image: http://prntscr.com/2to0jp

Under OnPlayerConnect:
Код:
CreateFishTD(playerid);
At the end of gamemode:
Код:
stock CreateFishTD(playerid)
{
	fishBox[playerid] = CreatePlayerTextDraw(playerid, 136.000000, 311.000000, "~n~");
	PlayerTextDrawBackgroundColor(playerid, fishBox[playerid], 255);
	PlayerTextDrawFont(playerid, fishBox[playerid], 1);
	PlayerTextDrawLetterSize(playerid, fishBox[playerid], 0.500000, 2.799999);
	PlayerTextDrawColor(playerid, fishBox[playerid], -1);
	PlayerTextDrawSetOutline(playerid, fishBox[playerid], 0);
	PlayerTextDrawSetProportional(playerid, fishBox[playerid], 1);
	PlayerTextDrawSetShadow(playerid, fishBox[playerid], 1);
	PlayerTextDrawUseBox(playerid, fishBox[playerid], 1);
	PlayerTextDrawBoxColor(playerid, fishBox[playerid], 145);
	PlayerTextDrawTextSize(playerid, fishBox[playerid], 40.000000, 0.000000);

	fishText[playerid] = CreatePlayerTextDraw(playerid, 45.000000, 310.000000, "~r~Mreza: ~w~1000/~r~1000m~n~~r~Plutace: ~w~6");
	PlayerTextDrawBackgroundColor(playerid, fishText[playerid], 255);
	PlayerTextDrawFont(playerid, fishText[playerid], 2);
	PlayerTextDrawLetterSize(playerid, fishText[playerid], 0.210000, 1.400000);
	PlayerTextDrawColor(playerid, fishText[playerid], -1);
	PlayerTextDrawSetOutline(playerid, fishText[playerid], 0);
	PlayerTextDrawSetProportional(playerid, fishText[playerid], 1);
	PlayerTextDrawSetShadow(playerid, fishText[playerid], 1);
}
Formating:

Код:
	new fishString[128];
	format(fishString, sizeof(fishString), "~r~Mreza: ~w~%d~r~/1000m~n~~r~Plutace: ~w~%d", fishMeters[playerid], fishFloats[playerid]);
	PlayerTextDrawSetString(playerid, fishText[playerid], fishString);
Reply
#2

BUMP!
Reply
#3

Did you re-check and update your Cords of CreatingTEXTdrawforplayer ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)