Variables
#1

So, what i'm trying to do is to check if the email is existing, but first to write the inputtext in variable, and if it not exist textdraw will change string to previously saved variable.

pawn Код:
{
                    RegEmail[29][playerid] = strlen(inputtext);
                    new str[250];
                    format(str, sizeof(str), "SELECT `Email` FROM `Igraci` WHERE `Email` = '%s'", inputtext);
                    mysql_function_query(konekt, str, true, "OnQueryFinish", "ii", THREAD_EMAIL, playerid);
                }

pawn Код:
if(szRows)
            {
                SPD(extraid, DIALOG_UNOSEMAIL, DIALOG_STYLE_INPUT, "E-Mail", "This Email already exist !\nPlease enter a valid email.", "Enter", "Exit");
                return 1;
            }
            else if(!szRows)
            {
                TextDrawSetString(RegText16[extraid], RegEmail[extraid]);
            }
As you can see under OnDialogResponse i wrote the inputtext into RegEmail[29][playerid] = strlen(inputtext);
But when i try to change textdraw string into RegEmail it's not working.
Reply
#2

Anyone ?
Reply
#3

Sorry for spamming but does anyone knows, it's very important.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)