Detaljan opis problema😛ravim nesto oko dijaloga,i stao sam na jednom komplikovanom dijelu..
Zelim da detektujem ako igrac nije nista upisao u dijalog box ako je samo pritisnuo OK da mu skripta reagira da mu gore ispise niste nista ukucali...
Pokušavao sam na 10001 nacin al opet dzabe.
Cak sam napravio ako pritisne ok da mu to gore ispise da nije ukucao nista,ali ako nesta ukuca opet mu gore nesto ispise i nece dalje da nastavi..
Dio koda:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_NULL_TEST:
{
if(!response) return Kick(playerid);
if(response)
{
if(strlen(inputtext) < MIN_LENGHT_PASSWORD)
{
SCM(playerid, COLOR_GREY,"Eror the password can't be smaller from 6 and 24 caracters");
ShowPlayerDialog(playerid, DIALOG_NULL_TEST, DIALOG_STYLE_PASSWORD,"Register","Eror the password can't be smaller from 6 and 24 caracters","OK","Cancel");
}
else if(strlen(inputtext) > MAX_LENGHT_PASSWORD)
{
SCM(playerid, COLOR_GREY,"Eror the password can't be smaller from 6 and 24 caracters");
ShowPlayerDialog(playerid, DIALOG_NULL_TEST, DIALOG_STYLE_PASSWORD,"Register","Eror the password can't be smaller from 6 and 24 caracters","OK","Cancel");
}
else if(strlen(inputtext) >= MIN_LENGHT_PASSWORD && strlen(inputtext) <= MAX_LENGHT_PASSWORD)
{
PlayerTextDrawSetString(playerid, register7, inputtext);
PlayerTextDrawShow(playerid, register7);
OnPlayerRegister(playerid, inputtext);
}
}
}
}
return 1;
}Nesto za dodati://
Slika://

