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


Messages In This Thread
Variables - by ShoortyFl - 11.07.2014, 14:30
Re: Variables - by ShoortyFl - 11.07.2014, 16:31
Re: Variables - by ShoortyFl - 11.07.2014, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)