15.03.2011, 22:53
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
ty
Код:
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; }