Detaljan opis problema: nece da prikazuje dialog za uslove, a za logiranje mi normalno prikaze
Dio skripte:
if(fexist(UserPath(playerid)))
{
new sstring;
new sendername;
GetPlayerName(playerid,sendername,sizeof(sendername));
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
format(sstring,sizeof(sstring),"teskt %s",sendername);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Logiranje",sstring,"Logiraj","Odustani");
hIgracUlogovan = 1;
Obrisi();
}
else
{
new sstring;
new coordsstring1;
new coordsstring2;
new coordsstring3;
new coordsstring4;
new coordsstring5;
new coordsstring6;
new coordsstring7;
new coordsstring8;
new coordsstring9;
new coordsstring10;
new coordsstring11;
new coordsstring12;
new coordsstring13;
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid,291.079193, 62.431571, 7.633911, 619.964294, 319.335174, 24.199625, 1000, CAMERA_CUT);
InterpolateCameraLookAt(playerid, 295.107452, 65.330856, 7.027944, 615.965454, 316.333953, 24.242885, 1000, CAMERA_CUT);
format(coordsstring1, sizeof(coordsstring1), "teskt");
format(coordsstring2, sizeof(coordsstring2), "teskt");
format(coordsstring3, sizeof(coordsstring3), "teskt");
format(coordsstring4, sizeof(coordsstring4), "teskt");
format(coordsstring5, sizeof(coordsstring5), "teskt");
format(coordsstring6, sizeof(coordsstring6), "teskt");
format(coordsstring7, sizeof(coordsstring7), "teskt");
format(coordsstring8, sizeof(coordsstring8), "teskt");
format(coordsstring9, sizeof(coordsstring9), "teskt");
format(coordsstring10, sizeof(coordsstring10), "teskt");
format(coordsstring10, sizeof(coordsstring11), "teskt");
format(coordsstring10, sizeof(coordsstring12), "teskt");
format(coordsstring10, sizeof(coordsstring13), "tekst");
format(sstring,sizeof(sstring),"%s%s%s%s%s%s%s%s%s%s%s%s%s",coordsstring1, coordsstring2, coordsstring3, coordsstring4, coordsstring5, coordsstring6, coordsstring7, coordsstring8, coordsstring9, coordsstring10, coordsstring11, coordsstring12, coordsstring13);
ShowPlayerDialog(playerid, DIALOG_REGISTER_USLOVI, DIALOG_STYLE_MSGBOX,"{33CCFF}Uvjeti koristenja",sstring,"Slazem se","Izadji");
Obrisi();
}if(dialogid == DIALOG_REGISTER_POCETAK_REGISTRACIJE)
{
if(!response) return SetTimerEx("KickaIgraca", 100, false, "i", playerid);
if(response)
{
new ssstring;
new sendername;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(ssstring,sizeof(ssstring),"%s",sendername);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Registracija",ssstring,"Registriraj","Odustani");
}
}
if(dialogid == DIALOG_REGISTER_USLOVI)
{
if(!response) return SetTimerEx("KickaIgraca", 100, false, "i", playerid);
if(response)
{
new ssstring;
new sendername;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(ssstring,sizeof(ssstring),"haa %s",sendername);
ShowPlayerDialog(playerid, DIALOG_REGISTER_POCETAK_REGISTRACIJE, DIALOG_STYLE_MSGBOX,"Pocetak registracije",ssstring,"Registracija","Odustani");
}
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
