SA-MP Forums Archive
textdraws help - 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: textdraws help (/showthread.php?tid=554503)



textdraws help - jeffery30162 - 04.01.2015

I have a very strange issue here. I have 3 textdraws and when i have them all three in my script i get a weird uncontrolable textdraw selection thing. But if i take two of them out it doesn't matter which ones and only leave one in my script, everything works perfectly. Its a weird error, its like i cant have them in the script at the same time. Why is this happening to me? I have never had this problem before.




Please help fast, therefore I can continue to work on my server


Код:
	for(new playerid=0; playerid<GetMaxPlayers(); playerid++){
	
	PlayerInfo[playerid][SkinSelect] = TextDrawCreate(248.000000, 125.000000, "~<~");
	TextDrawBackgroundColor(PlayerInfo[playerid][SkinSelect], 255);
	TextDrawFont(PlayerInfo[playerid][SkinSelect], 2);
	TextDrawLetterSize(PlayerInfo[playerid][SkinSelect], 1.000000, 3.000000);
	TextDrawColor(PlayerInfo[playerid][SkinSelect], -1);
	TextDrawSetOutline(PlayerInfo[playerid][SkinSelect], 1);
	TextDrawSetProportional(PlayerInfo[playerid][SkinSelect], 1);
	TextDrawUseBox(PlayerInfo[playerid][SkinSelect], 1);
	TextDrawBoxColor(PlayerInfo[playerid][SkinSelect], 0);
	TextDrawTextSize(PlayerInfo[playerid][SkinSelect], 270.000000, 15.000000);
	TextDrawSetSelectable(PlayerInfo[playerid][SkinSelect], 1);

   	PlayerInfo[playerid][SkinSelect1] = TextDrawCreate(362.000000, 125.000000, "~>~");
	TextDrawBackgroundColor(PlayerInfo[playerid][SkinSelect1], 255);
	TextDrawFont(PlayerInfo[playerid][SkinSelect1], 2);
	TextDrawLetterSize(PlayerInfo[playerid][SkinSelect1], 1.000000, 3.000000);
	TextDrawColor(PlayerInfo[playerid][SkinSelect1], -1);
	TextDrawSetOutline(PlayerInfo[playerid][SkinSelect1], 1);
	TextDrawSetProportional(PlayerInfo[playerid][SkinSelect1], 1);
	TextDrawUseBox(PlayerInfo[playerid][SkinSelect1], 1);
	TextDrawBoxColor(PlayerInfo[playerid][SkinSelect1], 0);
	TextDrawTextSize(PlayerInfo[playerid][SkinSelect1], 385.000000, 15.000000);
	TextDrawSetSelectable(PlayerInfo[playerid][SkinSelect1], 1);

	PlayerInfo[playerid][SkinSelect2] = TextDrawCreate(267.500000, 175.000000, "~g~Select");
	TextDrawBackgroundColor(PlayerInfo[playerid][SkinSelect2], 255);
	TextDrawFont(PlayerInfo[playerid][SkinSelect2], 2);
	TextDrawLetterSize(PlayerInfo[playerid][SkinSelect2], 0.600000, 2.100000);
	TextDrawColor(PlayerInfo[playerid][SkinSelect2], -1);
	TextDrawSetOutline(PlayerInfo[playerid][SkinSelect2], 1);
	TextDrawSetProportional(PlayerInfo[playerid][SkinSelect2], 1);
	TextDrawSetShadow(PlayerInfo[playerid][SkinSelect2], 1);
	TextDrawUseBox(PlayerInfo[playerid][SkinSelect2], 1);
	TextDrawBoxColor(PlayerInfo[playerid][SkinSelect2], 0);
	TextDrawTextSize(PlayerInfo[playerid][SkinSelect2], 370.000000, 15.000000);
	TextDrawSetSelectable(PlayerInfo[playerid][SkinSelect2], 1);
}



Re: textdraws help - jeffery30162 - 04.01.2015

please help me, I need this quick so i can put my server back online


Re: textdraws help - Ryz - 04.01.2015

hows you have defined textdraws? like

pawn Код:
new Text:Blabla



Re: textdraws help - jeffery30162 - 04.01.2015

Код:
enum pInfo
{
	Text:SkinSelect,
	Text:SkinSelect1,
	Text:SkinSelect2,
}
new PlayerInfo[MAX_PLAYERS][pInfo];

those are in the middle of my pinfo enum, it doesn't look exacially like that


Re: textdraws help - jeffery30162 - 04.01.2015

if I only put one of the three textdraws that I have above in my script it works perfectly, but if i but another one in (whichever one) it starts screwing up


Re: textdraws help - Ryz - 04.01.2015

....


Re: textdraws help - Ryz - 04.01.2015

Here look

pawn Код:
TextDrawTextSize(PlayerInfo[playerid][SkinSelect], 20.000000, 15.000000);



Re: textdraws help - jeffery30162 - 04.01.2015

Still have the same issue


Re: textdraws help - Ryz - 04.01.2015

Quote:
Originally Posted by jeffery30162
Посмотреть сообщение
weird uncontrolable textdraw selection thing.
can you explain more? no will understand


Re: textdraws help - jeffery30162 - 04.01.2015

Quote:
Originally Posted by Ryz
Посмотреть сообщение
Here look

pawn Код:
TextDrawTextSize(PlayerInfo[playerid][SkinSelect], 20.000000, 15.000000);


What does the text size have to do with it, btw: i tried it and it did not work