Variables - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Variables (
/showthread.php?tid=525349)
Variables -
ShoortyFl - 11.07.2014
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.
Re: Variables -
ShoortyFl - 11.07.2014
Anyone ?
Re: Variables -
ShoortyFl - 11.07.2014
Sorry for spamming but does anyone knows, it's very important.