SAMP bug or code fail?
#1

Hi. It's the first time I'm working with clickable textdraws and I got this problem : All the texts(except "Register" cause I'm already registered) are selectable. At OnPlayerConnect I have
pawn Code:
SelectTextDraw(playerid, 0x5f5f5730);
But I can only click "Login" and the highlight doesn't disappear from login. PIC :

So, is it a samp bug or my codes are wrong?
Reply
#2

What do you mean by getting the heights correct? There must be more space between the textdraws or what?
Reply
#3

Take this as an example:
pawn Code:
PlayerTextDrawTextSize(playerid,Textdraw0, 130.000000, 0.000000);
If I just had that code, you wouldn't be able to select the TD. For some reason, most editors don't seem to account for this automatically, so we as programmers have to go in and do it ourselves. If you're not lazy, it's no big deal! However, I used TD's like crazy in my mode, so it is a pain in the ass...

Anyways!

pawn Code:
PlayerTextDrawTextSize(playerid,Textdraw0, 130.000000, 10.000000);
I changed the 0.00000000 to 10.00000000- the TD should become "selectable" now.
Reply
#4

Quote:
Originally Posted by RealCop228
View Post
Take this as an example:
pawn Code:
PlayerTextDrawTextSize(playerid,Textdraw0, 130.000000, 0.000000);
If I just had that code, you wouldn't be able to select the TD. For some reason, most editors don't seem to account for this automatically, so we as programmers have to go in and do it ourselves. If you're not lazy, it's no big deal! However, I used TD's like crazy in my mode, so it is a pain in the ass...

Anyways!

pawn Code:
PlayerTextDrawTextSize(playerid,Textdraw0, 130.000000, 10.000000);
I changed the 0.00000000 to 10.00000000- the TD should become "selectable" now.
OK, I'll try it out(and I'm sure it'll work), I didn't event knew about this function.(told you, it's the first time I'm working with selectable textdraws.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)