Dialog Response Help.
#5

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1) // Login Dialogue
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "You clicked Quit"),Kick(playerid);
        if(strlen(inputtext) >= 1) return SendClientMessage(playerid, 0xFFFFFFFF, "Strlen was > 1");
        if(strlen(inputtext) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Please actually enter a password"),SendClientMessage(playerid, 0xFFFFFFFF, "Please actually enter a password");
    }
    return 1;
}
Try.
error 079: inconsistent return types (array & non-array)

EDIT: nevermind, testing it out.

EDIT: It still spawns the player after sending the "Please actually enter a password"

I show the dialogue onPlayerConnection if the name is found in a SQLite database table using the following code
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "That account already exists!\n Please enter your password below:", "Login", "Quit");
		print(szOut);
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: 2 Guest(s)