[POMOC]Ne Pokazuje mi TextDraw

Započeo Harryâ„¢, Februar 11, 2016, 21:42:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: //
Detaljan opis problema: Pokusavam napraviti TextDraw registraciju, znaci da klikne na TD (sifra) i da kuca sifru ali kada bude intro, kada treba da pokaze Textdraw nigdje ga!
Dio skripte:

TextDrawovi



NoviLoginsonD11 = TextDrawCreate(245.000000, 112.000000, "PASSWORD:");
TextDrawAlignment(NoviLoginsonD11, 2);
TextDrawBackgroundColor(NoviLoginsonD11, 255);
TextDrawFont(NoviLoginsonD11, 2);
TextDrawLetterSize(NoviLoginsonD11, 0.259999, 2.199999);
TextDrawColor(NoviLoginsonD11, -1);
TextDrawSetOutline(NoviLoginsonD11, 1);
TextDrawSetProportional(NoviLoginsonD11, 1);
TextDrawSetSelectable(NoviLoginsonD11, 0);
TextDrawSetSelectable(NoviLoginsonD11, 1);

//IMA JOS TEXTDRAWOWA ali eto uzeo sam ova dva jer bez njih se ne moze prijaviti, a ostale bi tek sad nadogradio


NoviLoginsonD13 = TextDrawCreate(240.000000, 155.000000, "E-MAIL:");
TextDrawAlignment(NoviLoginsonD13, 2);
TextDrawBackgroundColor(NoviLoginsonD13, 255);
TextDrawFont(NoviLoginsonD13, 2);
TextDrawLetterSize(NoviLoginsonD13, 0.259999, 2.199999);
TextDrawColor(NoviLoginsonD13, -1);
TextDrawSetOutline(NoviLoginsonD13, 1);
TextDrawSetProportional(NoviLoginsonD13, 1);
TextDrawSetSelectable(NoviLoginsonD13, 0);





Kada klikne na TD (za sifru)



else if(clickedid == NoviLoginsonD11)
{
CancelSelectTextDraw(playerid);
    new string[555];
        format(string,sizeof(string),"{FFFF00}Unesite password koju zelite koristiti za ulazak na  profil %s",GetPlayerNamesEx(playerid));     
ShowPlayerDialog(playerid, DIALOG_REGISTRACIJA,DIALOG_STYLE_PASSWORD, "- Password", string, "Uredu", "Izadji" );
}





Ako nije registrovan na srw da mu dodje ovo!

else
{

             
                    TextDrawShowForPlayer(playerid,NoviLoginsonD11);
                    TextDrawShowForPlayer(playerid,NoviLoginsonD13);
                 

// TextDrawSetSelectable(NoviLoginsonD11[playerid], 1);
PlayerTextDrawSetSelectable(playerid,NoviLoginsonD11[playerid], 1);

SelectTextDraw(playerid, 0x00C0FFFF);
                   
                   
                   
                   
                   


Neke slike/video za lakse dobivanje pomoci(neobavezno): http://i.imgur.com/P2JOIv4.png
Poslednja Izmena: Februar 11, 2016, 21:44:34 POSLE PODNE od Harryâ„¢

Kreiras ga kao globalni TD a prikazujes ga kao per player TD.

Rijesio sam sada pokaze TD, ali ne mogu kliknuti na TD za SIFRU!

Izvinite zbog duplog posta, nmg urediti onaj gore! Rijesio sam da mi pokaze Textdraw i da kliknem na PASSWORD, ali imam problem sada odem sa misom (kursorom) dalje od PASSWORD ono i dalje prikazuje da kliknem na PASSWORD tj kao da drzim na PASSWORD


Na slici se ne vidi gdje je mis ali sam oznacio gdje sam drzao i opet pokazuje PASSWORD kao da drzim na njemu, kako da samo kad dodjem blizu PASSWORD skroz blizu da mi tek onda ocita da kliknem a ne ovako


http://i.imgur.com/uHx3AqA.png



I ako moze pomoc, napravio sam i kad kliknem na password i unesem lozinku, ali kako da mi sad prikaze DESNO tu lozinku? Imam poseban TD za to ali ne mogu nikako napraviti da mi pokazu tu lozinku
Poslednja Izmena: Februar 12, 2016, 14:28:37 POSLE PODNE od Harryâ„¢

Moras podesiti textdrawtextsize, to skines ipleomax TD editor i dodas box na text i njegove krodinate za textdrawtextsize, a to da pokazes pw desno imas PlayerTextDrawSetString...

My Bike KTM 450 SXF 2008

Stavio sam box preko teksta i uzeo  TextdrawTextSize i stavi na TD PASSWORD, i sad ne mogu uopste da kliknem na password!

Rijesio sam hvala puno!

Zaboravio staviti selectable na 1

Rijesio sam ali imam problemcic moram malo vise sad traziti gdje da kliknem tj nece bas na svakom mjestu da ocita da mogu kliknuti

http://i.imgur.com/nxRxCVE.png

evo ako razumijete sta hocu da kazem odem na npr slovo

P od Password nece da ocita da kliknem, a npr odem na slovo R od passwoRd i hoce!

Već ti je Vuzimir napisao kako da rešiš taj problem.




Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein

Podesio sam Textdrawtextsize znaci stavio box i sve i slabije mi trazi gdje je taj, a kad uklonim Textdrawtextsize onda gdje god kliknem otvori mi password,

Evo kako sam stavio Box i poslije samo postavim textdrawtextsize na moj td PASSWORD

http://i.imgur.com/gdz9BHa.png

Daj mi kodove da pogledam.




Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein

TextDraw PASSWORD, GODINE i EMAIL

NoviLoginsonD11 = TextDrawCreate(245.000000, 112.000000, "PASSWORD:");
TextDrawAlignment(NoviLoginsonD11, 2);
TextDrawBackgroundColor(NoviLoginsonD11, 255);
TextDrawFont(NoviLoginsonD11, 2);
TextDrawLetterSize(NoviLoginsonD11, 0.259999, 2.199999);
TextDrawColor(NoviLoginsonD11, -1);
TextDrawSetOutline(NoviLoginsonD11, 1);
TextDrawTextSize(NoviLoginsonD11, 200.000000, 2.000000);
TextDrawSetProportional(NoviLoginsonD11, 1);
TextDrawSetSelectable(NoviLoginsonD11, 1);



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);


//EMAIL
NoviLoginsonD13 = TextDrawCreate(240.000000, 155.000000, "E-MAIL:");
TextDrawAlignment(NoviLoginsonD13, 2);
TextDrawBackgroundColor(NoviLoginsonD13, 255);
TextDrawFont(NoviLoginsonD13, 2);
TextDrawLetterSize(NoviLoginsonD13, 0.259999, 2.199999);
TextDrawColor(NoviLoginsonD13, -1);
TextDrawSetOutline(NoviLoginsonD13, 1);
TextDrawTextSize(NoviLoginsonD13, 200.000000, 2.000000);
TextDrawSetProportional(NoviLoginsonD13, 1);
TextDrawSetSelectable(NoviLoginsonD13, 1);







Kada nije registrovan otvori mu textdawore  da moze klikat na PASSWORD, EMAIL, Godine itd..



else
{
SelectTextDraw(playerid, 0xFFFF00FF);
TextDrawShowForPlayer(playerid,NoviLoginsonD1);
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,NoviLoginsonD13);
TextDrawShowForPlayer(playerid,NoviLoginsonD15);
TextDrawShowForPlayer(playerid,NoviLoginsonD17);
TextDrawShowForPlayer(playerid,NoviLoginsonD19);
TextDrawShowForPlayer(playerid,NoviLoginsonD21);
}


KADA KLIKNE na TextDraw PASSWORD ,GODINE


//PASSWORD
else if(clickedid == NoviLoginsonD11)
{
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);
TextDrawHideForPlayer(playerid, NoviLoginsonD13);
//TextDrawHideForPlayer(playerid, NoviLoginsonD14);
TextDrawHideForPlayer(playerid, NoviLoginsonD15);
//TextDrawHideForPlayer(playerid, NoviLoginsonD16);
TextDrawHideForPlayer(playerid, NoviLoginsonD17);
//TextDrawHideForPlayer(playerid, NoviLoginsonD18);
TextDrawHideForPlayer(playerid, NoviLoginsonD19);
//TextDrawHideForPlayer(playerid, NoviLoginsonD20);
TextDrawHideForPlayer(playerid, NoviLoginsonD21);
new stringr[555];
format(stringr,sizeof(stringr),"{FFFF00}\n_____________________________________________________\n\n{FFFFFF}Unesite sifru koju cete koristiti za ulazak na {FFFF00}%s\n\n{FF0000}Sifra ne smije biti kraca od 6 i duza od 25 znakova\n\n{FFFF00}_____________________________________________________",GetPlayerNameEx(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTRACIJA,DIALOG_STYLE_INPUT, "CG:RP - Registracija", stringr, "Uredu", "Izadji" );
}




//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");
}




//EMAIL
else if(clickedid == NoviLoginsonD13)
{
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]);
TextDrawHideForPlayer(playerid, NoviLoginsonD13);
//TextDrawHideForPlayer(playerid, NoviLoginsonD14);
PlayerTextDrawHide(playerid, NoviLoginsonD12[playerid]);
TextDrawHideForPlayer(playerid, NoviLoginsonD15);
//TextDrawHideForPlayer(playerid, NoviLoginsonD16);
TextDrawHideForPlayer(playerid, NoviLoginsonD17);
//TextDrawHideForPlayer(playerid, NoviLoginsonD18);
TextDrawHideForPlayer(playerid, NoviLoginsonD19);
//TextDrawHideForPlayer(playerid, NoviLoginsonD20);
TextDrawHideForPlayer(playerid, NoviLoginsonD21);
ShowPlayerDialog(playerid, DIALOG_UEMAIL, DIALOG_STYLE_INPUT, "Unesite e-mail adresu!","{FFFFFF}Molimo vas unesite vasu e-mail adresu:\nPrimjer e-maila:{00C0FF} [email protected]", "Dalje", "");
}





DIALOG GODINE


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", inputtext);
PlayerTextDrawSetString(playerid, NoviLoginsonD18[playerid], stringig);
     
}
}
}
Poslednja Izmena: Februar 13, 2016, 16:42:22 POSLE PODNE od Harryâ„¢

Nisi uradio ono što ti je Vuzimir rekao i meni stvarno nije jasno kako možete biti tako lenji za sebe, ne mogu da verujem da ne možete malo da pogledate svoj jebeni kod i da testirate, još pogotovu kad vam neko da smernice i kaže vam gde da tražite rešenje za vaš problem.

Stavio si TextDrawTextSize(NoviLoginsonD11, 200.000000, 2.000000);
Po vertikali si raširio 200, a po horizontali 2? Napravio si tanku vertikalnu liniju po kojoj je moguće kliknuti za taj textdraw. Rekao ti je da koristiš iPLEOMAX textdraw editor s kojim bi lako rešio tvoj problem.
Primera radi za tvoj textdraw bi trebao da napraviš zonu visine 15 i širine 60, a ne 200, 2.
Teško je pročitati samp wikipediju na kojoj sve piše.




Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein

pa nisam imo iPLEOMAX nego obicni TD Editor!

Citat: Vodka Play poslato Februar 13, 2016, 17:00:55 POSLE PODNE
Stavio si TextDrawTextSize(NoviLoginsonD11, 200.000000, 2.000000);
Po vertikali si raširio 200, a po horizontali 2? Napravio si tanku vertikalnu liniju po kojoj je moguće kliknuti za taj textdraw.
Primera radi za tvoj textdraw bi trebao da napraviš zonu visine 15 i širine 60, a ne 200, 2.


Sta ti ovdje nije jasno da ti objasnim?

pa razumijem sad! trebo sam preko iPLEOMAXA rijesiti!