20.05.2012, 08:45
Quote:
From this point onwards I refuse to reply to help in this section!, THis shouldn't be in the 0.3e Forum it should be in Normal Scripting discussion. FYI I reported this post.
|
Shut up about your 'wrong section' and just help the guy already. Right now you're just being a hypocrite.
OT: The close button does not change colour because of the ~r~ in the textdraw, making it permanent red (You can, however, just get the RGBA code of it and use it in TextDrawColor)
The other button requires a bit more explanation: You need to use TextDrawTextSize with the second parameter as created_x_position + x_offset.
Your code was:
pawn Код:
gPhoneEnterNum[2] = TextDrawCreate(533.000000, 362.000000, "1");
TextDrawTextSize(gPhoneEnterNum[2], 100.000000, 20.000000);
pawn Код:
gPhoneEnterNum[2] = TextDrawCreate(533.000000, 362.000000, "1");
TextDrawTextSize(gPhoneEnterNum[2], 533.0 + 100.0, 20.000000);
Working with textdraws (and especially selectable ones) is a lot of trial and error work ^^.