Dialog Response Help.
#1

Hello, I have a dialog with id of 1 and the follow code works although I would like when it sends the message "please actually enter a password" for the menu to not dissapear, basically right now it spawns the user after sending the message.

I would like for the menu to only dissapear when strlen > 1.

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1) { // Login Dialogue


		if(!response) {
  		SendClientMessage(playerid, 0xFFFFFFFF, "You clicked Quit");
		return Kick(playerid); //They clicked quit
}

        if (strlen(inputtext) >= 1) {
        SendClientMessage(playerid, 0xFFFFFFFF, "Strlen was > 1");
}
		else if (strlen(inputtext) <= 0) {
  		SendClientMessage(playerid, 0xFFFFFFFF, "Please actually enter a password");
   		return 0;
		}
	}

        return 0;
    }
Reply


Messages In This Thread
Dialog Response Help. - by Snip3d - 03.07.2012, 22:22
Re: Dialog Response Help. - by Dolby - 03.07.2012, 22:39
Re: Dialog Response Help. - by Snip3d - 03.07.2012, 22:49
Re: Dialog Response Help. - by Dolby - 03.07.2012, 23:16
Re: Dialog Response Help. - by Snip3d - 04.07.2012, 00:07
Re: Dialog Response Help. - by Dolby - 04.07.2012, 00:08
Re: Dialog Response Help. - by Snip3d - 04.07.2012, 00:13
Re: Dialog Response Help. - by Dolby - 04.07.2012, 00:19
Re: Dialog Response Help. - by Snip3d - 04.07.2012, 00:26
Re: Dialog Response Help. - by Dolby - 04.07.2012, 00:34

Forum Jump:


Users browsing this thread: 1 Guest(s)