15.02.2015, 23:16
How to check using strcmp or strfind if dialog inputtext are empty ?
Is it for all the dialogs or just this one, Show us the script for that part.
|
if(strlen(inputtext)) { SCM(playerid, COLOR_LIGHTRED, "{157DEC}You are not type an{FFFFFF}Email"); ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "E-Mail", "{FFFFFF}Please type your{157DEC}e-mail {FFFFFF}adress", "Ok", "" ); return 1; }
I make like this
if(!isnull(inputtext)) { SCM(playerid, COLOR_LIGHTRED, "{157DEC}You are not type an{FFFFFF}Email"); ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "E-Mail", "{FFFFFF}Please type your{157DEC}e-mail {FFFFFF}adress", "Ok", "" ); return 1; } But not work,it say i not type anything but i type |
if(isnull(inputtext))
{
SCM(playerid, COLOR_LIGHTRED, "{157DEC}You are not type an{FFFFFF}Email");
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "E-Mail", "{FFFFFF}Please type your{157DEC}e-mail {FFFFFF}adress", "Ok", "" );
return 1;
}
forgot to remove the ! from isnull
pawn Код:
|