Dialog Input Problem
#1

ok so i made a car dialog input password but if you type nothing and click the button "Enter" it says password correct? how can i fix this the only way i can think of is making it so the minium chars are like 1 please help


Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 67 && response == 1)
	{
	if(!strcmp(inputtext, "passwordtest", true))
	{
		SendClientMessage(playerid,0x33AA33AA,"Password Correct!");
		return 1;
    }
 	if(!strcmp(inputtext, "", true))
	{
		RemovePlayerFromVehicle(playerid);
		SendClientMessage(playerid,0x33AA33AA,"Password Incorrect!");
		return 1;
	}
	}
	else
	{
		RemovePlayerFromVehicle(playerid);
	}
	return 1;
}
ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)