SA-MP Forums Archive
Bug with Textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug with Textdraw (/showthread.php?tid=495726)



Bug with Textdraw - ivanVU - 18.02.2014

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);



Re: Bug with Textdraw - ivanVU - 21.02.2014

BUMP!


Re : Bug with Textdraw - MCZOFT - 21.02.2014

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