[Pomoc] Ocita vise TextDraw za klikanje!

Započeo Harryâ„¢, Februar 13, 2016, 15:55:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: //
Detaljan opis problema:

Napravio sam TextDrawove da se mora kliknuti na njih! 

2-3 textdrawa su dobra, mislim dobra pod tim da kad dodjem na njih da kliknem ne ucitaje jos neki textdraw kao da kliknem (ako ne razumijete imate dole sliku, drzim mis na GODINE, a ocita mi i GODINE i EMAIL)

i drugi problem je sto moram otprilike naci sredinu rijeci da bih kliknuo na taj textdraw

kada hocu da kliknem na password moram kliknuti negdje oko W, a ako kliknem na slovo P nece ako me razumijete, stavio sam Textdrawtextsize na taj textdraw evo ovako http://imgur.com/gdz9BHa i uzeo kodove od Textdrawtextsize i postavio na Password textdraw! Tako sam i za ostale TextDrawove uradio, i za Email, godine, drzava, spol


Dio skripte:
TextDraw Godine

NoviLoginsonD17 = TextDrawCreate(240.000000, 238.000000, "Godine:");
TextDrawAlignment(NoviLoginsonD17, 2);
TextDrawBackgroundColor(NoviLoginsonD17, 255);
TextDrawFont(NoviLoginsonD17, 2);
TextDrawLetterSize(NoviLoginsonD17, 0.259999, 2.199999);
TextDrawColor(NoviLoginsonD17, -1);
TextDrawSetOutline(NoviLoginsonD17, 1);
TextDrawTextSize(NoviLoginsonD17, 200.000000, 2.000000);
TextDrawSetProportional(NoviLoginsonD17, 1);
TextDrawSetSelectable(NoviLoginsonD17, 1);


Klikanje na textdraw GODINE

else if(clickedid == NoviLoginsonD17)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, NoviLoginsonD1);
TextDrawHideForPlayer(playerid, NoviLoginsonD2);
TextDrawHideForPlayer(playerid, NoviLoginsonD3);
TextDrawHideForPlayer(playerid, NoviLoginsonD4);
TextDrawHideForPlayer(playerid, NoviLoginsonD5);
TextDrawHideForPlayer(playerid, NoviLoginsonD6);
TextDrawHideForPlayer(playerid, NoviLoginsonD7);
TextDrawHideForPlayer(playerid, NoviLoginsonD8);
TextDrawHideForPlayer(playerid, NoviLoginsonD9);
TextDrawHideForPlayer(playerid, NoviLoginsonD10);
TextDrawHideForPlayer(playerid, NoviLoginsonD11);
//TextDrawHideForPlayer(playerid, NoviLoginsonD12);
PlayerTextDrawHide(playerid, NoviLoginsonD12[playerid]);
PlayerTextDrawHide(playerid, NoviLoginsonD14[playerid]);
TextDrawHideForPlayer(playerid, NoviLoginsonD13);
//TextDrawHideForPlayer(playerid, NoviLoginsonD14);
TextDrawHideForPlayer(playerid, NoviLoginsonD15);
//TextDrawHideForPlayer(playerid, NoviLoginsonD16);
PlayerTextDrawHide(playerid, NoviLoginsonD16[playerid]);
TextDrawHideForPlayer(playerid, NoviLoginsonD17);
//TextDrawHideForPlayer(playerid, NoviLoginsonD18);
TextDrawHideForPlayer(playerid, NoviLoginsonD19);
//TextDrawHideForPlayer(playerid, NoviLoginsonD20);
TextDrawHideForPlayer(playerid, NoviLoginsonD21);
ShowPlayerDialog(playerid, DIALOG_GODINE, DIALOG_STYLE_INPUT, "{00C0FF}CG - Godine","{FFFFFF}Koliko imate godina?\n", "U redu", "Odustani");
}




kada je kliknuo na godine sta otvori!

if(dialogid == DIALOG_GODINE) // Dob
{
        if(RegistrationStep[playerid] == 2)
    {
            if(response)
    {
        new godine = strval(inputtext);
        if(godine < 8 || godine > 60) return ShowPlayerDialog(playerid, DIALOG_GODINE, DIALOG_STYLE_INPUT, "{00C0FF}CG | {FFFFFF}Godine","{FFFFFF}Unesite koliko imate godina", "U redu", "Odustani");
      PlayerInfo[playerid][pGodine] = godine;
     

SelectTextDraw(playerid, 0xFFFF00FF);
TextDrawShowForPlayer(playerid, NoviLoginsonD1);
TextDrawShowForPlayer(playerid, NoviLoginsonD2);
TextDrawShowForPlayer(playerid, NoviLoginsonD3);
TextDrawShowForPlayer(playerid, NoviLoginsonD4);
TextDrawShowForPlayer(playerid, NoviLoginsonD5);
TextDrawShowForPlayer(playerid, NoviLoginsonD6);
TextDrawShowForPlayer(playerid, NoviLoginsonD7);
TextDrawShowForPlayer(playerid, NoviLoginsonD8);
TextDrawShowForPlayer(playerid, NoviLoginsonD9);
TextDrawShowForPlayer(playerid, NoviLoginsonD10);
TextDrawShowForPlayer(playerid, NoviLoginsonD11);
//TextDrawShowForPlayer(playerid, NoviLoginsonD12);
PlayerTextDrawShow(playerid, NoviLoginsonD12[playerid]);
PlayerTextDrawShow(playerid, NoviLoginsonD14[playerid]);
TextDrawShowForPlayer(playerid, NoviLoginsonD13);
//TextDrawShowForPlayer(playerid, NoviLoginsonD14);
TextDrawShowForPlayer(playerid, NoviLoginsonD15);
//TextDrawShowForPlayer(playerid, NoviLoginsonD16);
PlayerTextDrawShow(playerid, NoviLoginsonD16[playerid]);
TextDrawShowForPlayer(playerid, NoviLoginsonD17);
//TextDrawShowForPlayer(playerid, NoviLoginsonD18);
TextDrawShowForPlayer(playerid, NoviLoginsonD19);
//TextDrawShowForPlayer(playerid, NoviLoginsonD20);
TextDrawShowForPlayer(playerid, NoviLoginsonD21);
//new stringig[128];
PlayerTextDrawShow(playerid, NoviLoginsonD18[playerid]);
format(stringig, sizeof(stringig), "%d", godine);
PlayerTextDrawSetString(playerid, NoviLoginsonD18[playerid], stringig);
     
}
}
}




Neke slike/video za lakse dobivanje pomoci(neobavezno): http://i.imgur.com/cChjXrg.png