textdraws help
#1

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);
}
Reply
#2

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

hows you have defined textdraws? like

pawn Код:
new Text:Blabla
Reply
#4

Код:
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
Reply
#5

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
Reply
#6

....
Reply
#7

Here look

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

Still have the same issue
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)