Register Login textdraw
#1

Hi, i have made a register login textdraw system, but i have problem.

When i move mouse to first button 'Password' it show me normal when i move mouse down to 'Sex' it still show orange Password button and Sex button.

Reply
#2

use SelectTextDraw(playerid, -1);

PS : show the code when you start a topic for help.
Reply
#3

But i want it orange not white.

I have try this, its work i know but i like orange.
Reply
#4

I think this problem provide by the TextSize of the textdraw, can you put the codes ?
Reply
#5

There is the code:
Quote:

bigbox = TextDrawCreate(276.000000, 1.500000, "usebox");
TextDrawLetterSize(bigbox, 0.000000, 49.405799);
TextDrawTextSize(bigbox, -2.000000, 0.000000);
TextDrawAlignment(bigbox, 1);
TextDrawColor(bigbox, 0);
TextDrawUseBox(bigbox, true);
TextDrawBoxColor(bigbox, 170);
TextDrawSetShadow(bigbox, 0);
TextDrawSetOutline(bigbox, 0);
TextDrawFont(bigbox, 0);

Server = TextDrawCreate(70.000000, 70.186691, "Server");
TextDrawLetterSize(Server, 0.449999, 1.600000);
TextDrawAlignment(Server, 1);
TextDrawColor(Server, 16711850);
TextDrawSetShadow(Server, 0);
TextDrawSetOutline(Server, 1);
TextDrawBackgroundColor(Server, 51);
TextDrawFont(Server, 1);
TextDrawSetProportional(Server, 1);

RolePlay = TextDrawCreate(126.400047, 70.684455, "RolePlay");
TextDrawLetterSize(RolePlay, 0.449999, 1.600000);
TextDrawAlignment(RolePlay, 1);
TextDrawColor(RolePlay, -1);
TextDrawSetShadow(RolePlay, 0);
TextDrawSetOutline(RolePlay, 1);
TextDrawBackgroundColor(RolePlay, 51);
TextDrawFont(RolePlay, 1);
TextDrawSetProportional(RolePlay, 1);

smallbox1 = TextDrawCreate(275.999969, 155.313354, "usebox");
TextDrawLetterSize(smallbox1, 0.000000, 1.515431);
TextDrawTextSize(smallbox1, -0.400000, 0.000000);
TextDrawAlignment(smallbox1, 1);
TextDrawColor(smallbox1, 0);
TextDrawUseBox(smallbox1, true);
TextDrawBoxColor(smallbox1, 102);
TextDrawSetShadow(smallbox1, 0);
TextDrawSetOutline(smallbox1, 0);
TextDrawFont(smallbox1, 0);

PasswordButton = TextDrawCreate(97.599929, 153.813415, "Password");
TextDrawLetterSize(PasswordButton, 0.451199, 1.575111);
TextDrawAlignment(PasswordButton, 1);
TextDrawColor(PasswordButton, -1);
TextDrawSetShadow(PasswordButton, 0);
TextDrawSetOutline(PasswordButton, 1);
TextDrawBackgroundColor(PasswordButton, 51);
TextDrawFont(PasswordButton, 1);
TextDrawSetProportional(PasswordButton, 1);
TextDrawSetSelectable(PasswordButton, true);

smallbox2 = TextDrawCreate(275.600006, 202.602264, "usebox");
TextDrawLetterSize(smallbox2, 0.000000, 1.397900);
TextDrawTextSize(smallbox2, -2.000000, 0.000000);
TextDrawAlignment(smallbox2, 1);
TextDrawColor(smallbox2, 0);
TextDrawUseBox(smallbox2, true);
TextDrawBoxColor(smallbox2, 102);
TextDrawSetShadow(smallbox2, 0);
TextDrawSetOutline(smallbox2, 0);
TextDrawFont(smallbox2, 0);

Sex = TextDrawCreate(116.000007, 200.106781, "Sex");
TextDrawLetterSize(Sex, 0.530000, 1.585066);
TextDrawAlignment(Sex, 1);
TextDrawColor(Sex, -1);
TextDrawSetShadow(Sex, 0);
TextDrawSetOutline(Sex, 1);
TextDrawBackgroundColor(Sex, 51);
TextDrawFont(Sex, 1);
TextDrawSetProportional(Sex, 1);
TextDrawSetSelectable(Sex, true);

smallbox3 = TextDrawCreate(275.200012, 242.424438, "usebox");
TextDrawLetterSize(smallbox3, 0.000000, 1.508521);
TextDrawTextSize(smallbox3, -2.000000, 0.000000);
TextDrawAlignment(smallbox3, 1);
TextDrawColor(smallbox3, 0);
TextDrawUseBox(smallbox3, true);
TextDrawBoxColor(smallbox3, 102);
TextDrawSetShadow(smallbox3, 0);
TextDrawSetOutline(smallbox3, 0);
TextDrawFont(smallbox3, 0);

EMail = TextDrawCreate(113.199989, 241.920028, "E-Mail");
TextDrawLetterSize(EMail, 0.449999, 1.600000);
TextDrawAlignment(EMail, 1);
TextDrawColor(EMail, -1);
TextDrawSetShadow(EMail, 0);
TextDrawSetOutline(EMail, 1);
TextDrawBackgroundColor(EMail, 51);
TextDrawFont(EMail, 1);
TextDrawSetProportional(EMail, 1);
TextDrawSetSelectable(EMail, true);

smallbox4 = TextDrawCreate(275.600067, 284.237670, "usebox");
TextDrawLetterSize(smallbox4, 0.000000, 1.437902);
TextDrawTextSize(smallbox4, -1.600000, 0.000000);
TextDrawAlignment(smallbox4, 1);
TextDrawColor(smallbox4, 0);
TextDrawUseBox(smallbox4, true);
TextDrawBoxColor(smallbox4, 102);
TextDrawSetShadow(smallbox4, 0);
TextDrawSetOutline(smallbox4, 0);
TextDrawFont(smallbox4, 0);

Website = TextDrawCreate(88.399986, 283.733337, "Forum Website");
TextDrawLetterSize(Website, 0.449999, 1.600000);
TextDrawAlignment(Website, 1);
TextDrawColor(Website, -1);
TextDrawSetShadow(Website, 0);
TextDrawSetOutline(Website, 1);
TextDrawBackgroundColor(Website, 51);
TextDrawFont(Website, 1);
TextDrawSetProportional(Website, 1);
TextDrawSetSelectable(Website, true);

smallbox5 = TextDrawCreate(275.200012, 324.557769, "usebox");
TextDrawLetterSize(smallbox5, 0.000000, 1.342591);
TextDrawTextSize(smallbox5, -2.000000, 0.000000);
TextDrawAlignment(smallbox5, 1);
TextDrawColor(smallbox5, 0);
TextDrawUseBox(smallbox5, true);
TextDrawBoxColor(smallbox5, 102);
TextDrawSetShadow(smallbox5, 0);
TextDrawSetOutline(smallbox5, 0);
TextDrawFont(smallbox5, 0);

RegiserButton = TextDrawCreate(88.000000, 323.057769, "Register Player");
TextDrawLetterSize(RegiserButton, 0.449999, 1.600000);
TextDrawAlignment(RegiserButton, 1);
TextDrawColor(RegiserButton, -1);
TextDrawSetShadow(RegiserButton, 0);
TextDrawSetOutline(RegiserButton, 1);
TextDrawBackgroundColor(RegiserButton, 51);
TextDrawFont(RegiserButton, 1);
TextDrawSetProportional(RegiserButton, 1);
TextDrawSetSelectable(RegiserButton, true);

Vmsg = TextDrawCreate(78.800003, 90.595535, "V");
TextDrawLetterSize(Vmsg, 0.449999, 1.600000);
TextDrawAlignment(Vmsg, 1);
TextDrawColor(Vmsg, 16711850);
TextDrawSetShadow(Vmsg, 0);
TextDrawSetOutline(Vmsg, 1);
TextDrawBackgroundColor(Vmsg, 51);
TextDrawFont(Vmsg, 1);
TextDrawSetProportional(Vmsg, 1);

ersion = TextDrawCreate(88.399993, 91.093246, "ersion 1.0");
TextDrawLetterSize(ersion, 0.449999, 1.600000);
TextDrawAlignment(ersion, 1);
TextDrawColor(ersion, -1);
TextDrawSetShadow(ersion, 0);
TextDrawSetOutline(ersion, 1);
TextDrawBackgroundColor(ersion, 51);
TextDrawFont(ersion, 1);
TextDrawSetProportional(ersion, 1);

Reply
#6

Try to do the textdraws without the boxes ( i mean with TextDrawUseBox )
Reply
#7

i have try this but still not work.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)