Help system accounts MYSQL error with the passwords..
#2

You want to see if he didn't type nothing?

At the top of your script:

pawn Код:
#if !defined isnull
    #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
Change the code to:

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");
                }
            }
Reply


Messages In This Thread
Help system accounts MYSQL error with the passwords.. - by Darkay - 31.10.2017, 13:31
Re: Help system accounts MYSQL error with the passwords.. - by Lucases - 31.10.2017, 13:48
Re: Help system accounts MYSQL error with the passwords.. - by Darkay - 31.10.2017, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)