05.06.2011, 14:01
I've create a dialog where players can add email on register:
I need to show undecoded the email,but i get this:
error 017: undefined symbol "email"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Thanks for help.
pawn Код:
if(dialogid == 3)
{
if(response)
{
if (!dini_Exists(udb_encode(playername)))
{
if(!(1 <= strlen(inputtext) <= 30))
{
new email[MAX_PLAYERS];
email[playerid] = email[playerid];
SendClientMessage(playerid, RED, "Your email is");
return ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Email","Insert your email to proceed with registration.\n\nInsert valid email.\n\nNo fake email.:","Add Email","");
}
GetPlayerName(playerid, playername, sizeof(playername));
dini_Create(udb_encode(playername));
dini_IntSet(udb_encode(playername), "email", email[playerid];
format(string, sizeof(string), "Added email: %s to your account.", inputtext);
SendClientMessage(playerid, COLOR_GREEN, string);
}
}
}
error 017: undefined symbol "email"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Thanks for help.