Odg: [Pomoc] Odabir drzave

Započeo Aldin Begovic
19. Mar. 2012. Zaključano
383
pregleda
3
postova
Aldin Begovic
4
Made Man
19. Mar. 2012.
mod:Mod od 0
opis problema😛rilikom registracije kada izaberem spol i godine treba da mi prebaci na drzavu ali nece !Neznam u cemu je problem!
cod:
if(dialogid == 13)
{
    if(RegistrationStep == 1)
    {
    if(response)
    {
if(listitem == 0)
        {
                    SetPVarInt(playerid,"Spol",1);
        ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n35 \n+35", "U redu", "Odustani");
    SetPlayerSkin(playerid, 20);
    PlayerInfo = 20;
        RegistrationStep = 2;
    }
    if(listitem == 1)
    {
                    SetPVarInt(playerid,"Spol",2);
        ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Koliko imate godina?", "10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n11 \n19 \n20 \n21 \n22 \n23 \n24 \n25 \n26 \n27 \n28 \n29 \n30 \n31 \n32 \n33 \n34 \n+35", "U redu", "Odustani");
    SetPlayerSkin(playerid, 90);
    PlayerInfo = 90;
        RegistrationStep = 2;
    }
    if(listitem == 2) // Kick
    {
      Kick(playerid);
    }
    }
            }
  return 1;
        }
if(dialogid == 19)
{
        if(RegistrationStep == 2)
    {
            if(response)
    {
                if(listitem == 0)
    {
        SetPVarInt(playerid,"Godine",9);
        ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 1)
    {
                    SetPVarInt(playerid,"Godine",10);
        ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 2)
    {
        SetPVarInt(playerid,"Godine",11);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 3)
    {
                    SetPVarInt(playerid,"Godine",12);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 4)
    {
                    SetPVarInt(playerid,"Godine",13);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 5)
    {
                    SetPVarInt(playerid,"Godine",14);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 6)
    {
                    SetPVarInt(playerid,"Godine",15);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
                            }
    if(listitem == 7)
    {
                    SetPVarInt(playerid,"Godine",16);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 8)
    {
                    SetPVarInt(playerid,"Godine",17);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 9)
    {
                    SetPVarInt(playerid,"Godine",18);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 10)
    {
                    SetPVarInt(playerid,"Godine",19);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 11)
    {
                    SetPVarInt(playerid,"Godine",20);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
                if(listitem == 12)
    {
                    SetPVarInt(playerid,"Godine",21);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 13)
    {
        SetPVarInt(playerid,"Godine",22);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 14)
    {
        SetPVarInt(playerid,"Godine",23);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 15)
    {
        SetPVarInt(playerid,"Godine",24);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 16)
    {
        SetPVarInt(playerid,"Godine",25);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 17)
    {
        SetPVarInt(playerid,"Godine",26);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 18)
    {
        SetPVarInt(playerid,"Godine",27);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 19)
    {
                    SetPVarInt(playerid,"Godine",28);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 20)
    {
                    SetPVarInt(playerid,"Godine",29);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 21)
    {
                    SetPVarInt(playerid,"Godine",30);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 22)
    {
                    SetPVarInt(playerid,"Godine",31);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 23)
    {
                    SetPVarInt(playerid,"Godine",32);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 24)
    {
                    SetPVarInt(playerid,"Godine",33);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
    }
    if(listitem == 25)
    {
                    SetPVarInt(playerid,"Godine",34);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nBosna i Hercegovina \nRepublika Srpska \nHrvatska \nCrna Gora \nMakedonija \nSlovenija \nOstalo", "U redu", "Odustani");
        RegistrationStep = 3;
                    }
            if(listitem == 26)
    {
                Kick(playerid);
    }
      }
}
return 1;
}
if(dialogid == 20)

    {
    if(RegistrationStep == 3)
    {

    if(response)
    {
    if(listitem == 0) //srbija
    {
    SetPVarInt(playerid,"Drzava",1);
    RegistrationStep = 0;
                TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 1) //bih
    {
        SetPVarInt(playerid,"Drzava",2);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 2) //republika srpska
    {
                SetPVarInt(playerid,"Drzava",3);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 3) //hrvatska
    {
                SetPVarInt(playerid,"Drzava",4);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 4) //crna gora
    {
                SetPVarInt(playerid,"Drzava",5);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 5) //hija
    {
                SetPVarInt(playerid,"Drzava",6);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 6) //slovenija
    {
                SetPVarInt(playerid,"Drzava",7);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 7) //ostalo
    {
                SetPVarInt(playerid,"Drzava",8);
                RegistrationStep = 0;
    TutTime = 1;
                TextDrawShowForPlayer(playerid, tutorijaltextdraw);
return 0;
    }
    if(listitem == 8)
    {
                Kick(playerid);
    }
      }
}
return 0;
}

return 1;
}
Aldin Begovic
4
Made Man
19. Mar. 2012.
Lock ! Rijeseno !
Deleted User
Obrisan korisnik
19. Mar. 2012.
Problem rijesen. LOCK!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha