31.10.2017, 13:48
You want to see if he didn't type nothing?
At the top of your script:
Change the code to:
At the top of your script:
pawn Код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
pawn Код:
case LOGIN:
{
if(!response)
{
Kick(playerid);
}
if(IsNull(inputtext))
{
SendClientMessage(playerid, -1, "[TNW] write your mail");
format(string, sizeof(string), "[TNW] Error complete the space.");
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "mail:",string,"next", "exit");
}
else
{*/
if(strcmp(PlayerInfo[playerid][mail], inputtext, true, 129) == 0)
{
format(string, sizeof(string), "[TNW] write your pass");
ShowPlayerDialog(playerid, LOGIN2, DIALOG_STYLE_PASSWORD,"contraseсa:",string,"next","exit");
}
else
{
SendClientMessage(playerid, -1, "[TNW] Error incorrect mail.");
format(string, sizeof(string), "[TNW] Error invalid mail.");
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "mail:",string,"next", "exit");
}
}