Pomoc oko register

Započeo ᴢᴢᴇʀᴏ.ᴘᴡɴ, Maj 02, 2020, 12:21:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Kod: [Izaberi][pawn]RegisterTD[playerid][11] = CreatePlayerTextDraw(playerid, 254.532958, 308.452362, "register");
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     if( playertextid == RegisterTD[ playerid ][ 11 ] ) {
       if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[ST:RP]: "PPLAVA"Nisi odabrao lozinku." );
      if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[ST:RP]: "PPLAVA"Nisi odabrao poreklo." );
      if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[ST:RP]: "PPLAVA"Nisi odabrao godine starosti." );
      if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[ST:RP]: "PPLAVA"Nisi uneo email." );
      if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[ST:RP]: "PPLAVA"Nisi odabrao drzavu." );[/pawn]
Problem(error/warning): vaš odgovor kad hocu da precinem "REGISTER" nece pojavi se dialog za "SPOL"
Dio skripte: [ pawn ]vaš odgovor[ /pawn ]  ^^
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ] /////
Slika/video ingame problema(obavezno ako je ingame problem): link slike https://imgur.com/a/HvWawyj

da li si stavio da bude selectable?
PAWN DEVELOPER - 2016

KAD JE NAJTEZE BUDI CVRST KAO CELIK
I SJAJI KAO NAJSKUPLJI DIJAMANT

VER MONT COMMUNITY

Kontakti:
FB: https://www.facebook.com/zmajko.youtube
IG: https://www.instagram.com/zmajkobrate

[pawn]   RegisterTD[playerid][11] = CreatePlayerTextDraw(playerid, 254.532958, 308.452362, "register");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][11], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][11], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][11], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][11], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][11], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][11], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][11], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][11], true);
[/pawn]


Ovaj TD kod što si postavio je kod za registraciju, ali ne i za "spol"...
Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

Znaci svaki radi samo taj ne? Daj ceo callback

Citat: V01D poslato Maj 04, 2020, 20:38:34 POSLE PODNE
Znaci svaki radi samo taj ne? Daj ceo callback

[pawn]   RegisterTD[playerid][6] = CreatePlayerTextDraw(playerid, 189.033096, 175.081436, "lozinka");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][6], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][6], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][6], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][6], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][6], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][6], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][6], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][6], true);

   RegisterTD[playerid][7] = CreatePlayerTextDraw(playerid, 191.799957, 197.582809, "e-mail");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][7], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][7], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][7], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][7], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][7], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][7], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][7], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][7], true);

   RegisterTD[playerid][8] = CreatePlayerTextDraw(playerid, 189.633132, 221.284255, "godine");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][8], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][8], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][8], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][8], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][8], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][8], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][8], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][8], true);

   RegisterTD[playerid][9] = CreatePlayerTextDraw(playerid, 190.933212, 246.400573, "drzava");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][9], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][9], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][9], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][9], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][9], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][9], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][9], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][9], true);

   RegisterTD[playerid][11] = CreatePlayerTextDraw(playerid, 254.532958, 308.452362, "register");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][11], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][11], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][11], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][11], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][11], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][11], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][11], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][11], true);

   RegisterTD[playerid][13] = CreatePlayerTextDraw(playerid, 194.533187, 269.874542, "spol");
   PlayerTextDrawLetterSize(playerid, RegisterTD[playerid][13], 0.195996, 0.778666);
   PlayerTextDrawAlignment(playerid, RegisterTD[playerid][13], 1);
   PlayerTextDrawColor(playerid, RegisterTD[playerid][13], 255);
   PlayerTextDrawSetShadow(playerid, RegisterTD[playerid][13], 0);
   PlayerTextDrawBackgroundColor(playerid, RegisterTD[playerid][13], 255);
   PlayerTextDrawFont(playerid, RegisterTD[playerid][13], 2);
   PlayerTextDrawSetProportional(playerid, RegisterTD[playerid][13], 1);
   PlayerTextDrawSetSelectable(playerid, RegisterTD[playerid][13], true);[/pawn]

[pawn]   if( playertextid == RegisterTD[ playerid ][ 6 ] ) {
        new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
      format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"PPLAVA"Dobrodosao na Marihuana Gaming\n\nVase Ime i Prezime: "PPLAVA"%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: "PPLAVA"Min 6/Max 26 znakova\n\n"BELA"________________________________________________",regname);
      ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
   }
    if(playertextid == RegisterTD[ playerid ][ 13 ])
   {
       ShowPlayerDialog(playerid,333,DIALOG_STYLE_MSGBOX,""ZELENA"M"BELA"G "ZELENA"R"BELA"PG - Registracija","{FFFFFF}Izaberite vas "ZELENA"spol"BELA"!",""ZELENA"Musko",""ROZA"Zensko");
   }
   if( playertextid == RegisterTD[ playerid ][ 9 ] ) {
      ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ""BELA"Odakle ste ?", ""PPLAVA"- "BELA"Srbija\n"PPLAVA"- "BELA"Bosna i Hercegovina\n"PPLAVA"- "BELA"Kosovo\n"PPLAVA"- "BELA"Crna Gora\n"PPLAVA"- "BELA"Hrvatska\n"PPLAVA"- "BELA"Makedonija\n"PPLAVA"- "BELA"Slovenija\n"PPLAVA"- "BELA"Ostalo", "Dalje", "Odustani");
   }
    if( playertextid == RegisterTD[ playerid ][ 8 ] ) {
      ShowPlayerDialog(playerid, 4, 1, ""BELA"Koliko imate godina?", ""ZUTA"U prazno polje ispod upisi koliko imas godina\n\n"BELA"Godine upisi brojem\n"PPLAVA"Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
   }
   if( playertextid == RegisterTD[ playerid ][ 7 ] ) {
      ShowPlayerDialog(playerid, 12, 1, ""BELA"Email", ""BELA"Unos email-a\n"ZUTA"U prazno polje ispod unesite vasu email adresu\n\n"BELA"Zamolili bih vas da unesete Tacan email", "Dalje", "Odustani");
   }
    if( playertextid == RegisterTD[ playerid ][ 11 ] ) {
       if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao lozinku." );
      if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao poreklo." );
      if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao godine starosti." );
      if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi uneo email." );
      if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao drzavu." );
        CancelSelectTextDraw( playerid );
      for(new i = 0; i < 26; i ++) {
      PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
      }[/pawn]

Znaci sve radi kako treba samo "Register" nece kad kliknem pojavi se za "Spol"



Pa gde ti je dialog da se prikaze?
Ako je to ovo ja ne vidim dialog ovde

[pawn]if( playertextid == RegisterTD[ playerid ][ 11 ] ) {
       if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao lozinku." );
      if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao poreklo." );
      if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao godine starosti." );
      if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi uneo email." );
      if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[MG:RPG]: "PPLAVA"Nisi odabrao drzavu." );
        CancelSelectTextDraw( playerid );
      for(new i = 0; i < 26; i ++) {
      PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
      }[/pawn]
GAD SAM JA