06.07.2014, 21:46
I have problems to save the E-mail
I did so, but only saves a 0
I did so, but only saves a 0
PHP код:
if(dialogid == DIALOG_EMAIL)
{
new string[128];
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,"Email","Enter your E-Mail","Next","Quit");
format(string, sizeof(string), "UPDATE `User` SET `EMAIL`='%i' WHERE `Name`='%s'", inputtext, NamePlayer(playerid));
db_free_result(db_query(Data, string));
ShowPlayerDialog(playerid, DIALOG_SEXO, DIALOG_STYLE_LIST,"Sex","Man\nWoman","Next","Quit");
}