11.07.2014, 14:30
(
Последний раз редактировалось ShoortyFl; 11.07.2014 в 16:31.
)
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.
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.
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]);
}
But when i try to change textdraw string into RegEmail it's not working.