Imam novi problem kada odabire porijeklo.Samo hrvatska radi ostalo nece kad kliknem npr. BiH Samo me vrati na upisivannje lozinke.
Evo ondialogresponse.
if(dialogid == DIALOG_PORIJEKLO) // Drzava
{
if(response)
{
// SetTimerEx("PredTutorial", 100, 0, "i", playerid);
if(listitem == 0) // HR
{
PlayerInfo = 1;
RegistrationStep = 0;
Registracija = 1;
PlayerInfo = 1;
TextDrawSetString(TextDraw,"HR");
return 0;
}
else if(listitem == 1) // BIH
{
PlayerInfo = 2;
RegistrationStep = 0;
Registracija = 1;
PlayerInfo = 1;
TextDrawSetString(TextDraw,"BiH");
return 0;
}
if(listitem == 2) // SRB
{
PlayerInfo = 3;
RegistrationStep = 0;
Registracija = 1;
PlayerInfo = 1;
TextDrawSetString(TextDraw,"SRB");
return 0;
}
if(listitem == 3) // CG
{
PlayerInfo = 4;
RegistrationStep = 0;
Registracija = 1;
PlayerInfo = 1;
TextDrawSetString(TextDraw,"CG");
return 0;
}
if(listitem == 4) // Slovenija
{
PlayerInfo = 5;
RegistrationStep = 0;
Registracija = 1;
PlayerInfo = 1;
TextDrawSetString(TextDraw,"SLO");
return 0;
}
if(listitem == 5) // MAK
{
PlayerInfo = 6;
RegistrationStep = 0;
Registracija = 1;
PlayerInfo = 1;
TextDrawSetString(TextDraw,"MAK");
return 0;
}
// SetTimerEx("PredTutorial", 100, 0, "i", playerid);
}
}
A evo i ovo.
ShowPlayerDialog(playerid, DIALOG_PORIJEKLO, DIALOG_STYLE_LIST, "Porijeklo","- Hrvatska\n- BiH\n- Srbija\n- Crna Gora\n- Slovenija\n- Makedonija", "U redu", "Odustani");