Textdraw is in little buggy
#1

Hello, I want to make a clickable text draw. Yes I did it but I have an problem. I have 3 clickable text draw but when i click 1st textdraw it works some time.Usually when I click the 1st textdraw, 2nd or 3rd textdraw click mechanism works.Here is the my codes;

Код:
tdEnterRoom <- textDrawCreate(280.000000,255.000000,"Enter Room");
	tdRoomBack <- textDrawCreate(257.000000-15,260.000000,"~<~");
	tdRoomNext <- textDrawCreate(369.000000+15,260.000000,"~>~");
	//textDrawUseBox(tdEnterRoom,true);
	//textDrawBoxColor(tdEnterRoom,0x00000066);
	//textDrawTextSize(tdEnterRoom,-5.000000,131.000000);
	
	//textDrawAlignment(tdEnterRoom,2);
	//textDrawAlignment(tdRoomBack,0);
	//textDrawAlignment(tdRoomNext,0);
	
	//textDrawBackgroundColor(tdEnterRoom,0x000000ff);
	//textDrawBackgroundColor(tdRoomBack,0x000000ff);
	//textDrawBackgroundColor(tdRoomNext,0x000000ff);
	
	textDrawFont(tdEnterRoom,2);
	//textDrawLetterSize(tdEnterRoom,0.499999,2.100000);
	textDrawFont(tdRoomBack,3);
	//textDrawLetterSize(tdRoomBack,1.000000,1.000000);
	textDrawFont(tdRoomNext,3);
	//textDrawLetterSize(tdRoomNext,1.000000,1.000000);
	
	textDrawColor(tdEnterRoom,0xffffffff);
	textDrawColor(tdRoomBack,0xffffffff);
	textDrawColor(tdRoomNext,0xffffffff);
	
	textDrawSetOutline(tdEnterRoom,0);
	textDrawSetOutline(tdRoomBack,0);
	textDrawSetOutline(tdRoomNext,0);
	
	textDrawSetProportional(tdEnterRoom,true);
	textDrawSetProportional(tdRoomBack,true);
	textDrawSetProportional(tdRoomNext,true);
	
	
	textDrawSetSelectable(tdEnterRoom, true);
	textDrawSetSelectable(tdRoomBack, true);
	textDrawSetSelectable(tdRoomNext, true);
PS: Do not think anything about the language. It's my own wrapper for Squirrel. So you just need to look at the textdraw codes(starts with textDraw....)
PS2: It isn't wrapper bug, I tested. It's samp bug.
Reply
#2

I chasted this code. Anybody help?

I solved. I changed the size variables.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)