Error -
Face9000 - 05.06.2011
I've create a dialog where players can add email on register:
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);
}
}
}
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.
Re: Error -
Face9000 - 05.06.2011
BUMP
Re: Error -
Face9000 - 06.06.2011
BUMP...
Re: Error -
Edvin - 06.06.2011
new email[MAX_PLAYERS];
Re: Error -
DRIFT_HUNTER - 06.06.2011
dini_IntSet(udb_encode(playername), "email", email[playerid];
You didnt close bracket
Re: Error -
Face9000 - 06.06.2011
error 001: expected token: ",", but found ";"
pawn Код:
dini_IntSet(udb_encode(playername), "email", email[playerid];
Re: Error -
Vince - 06.06.2011
Isn't it overly clear that you forgot a round bracket? I mean, how stupid do you need to be to not see it?
Re: Error -
Face9000 - 06.06.2011
LOL,i feel sleeping,i'm not stupid.
Re: Error -
gamer931215 - 06.06.2011
You should try reading the errors and actually understand them, just ignoring what the error says and posting every error on SA-MP forum doesnt help anyone
error 017: undefined symbol "email" -> email is undefined, so define it like Edvin said ^^
error 001: expected token: ",", but found ";" -> pawno expects a comma at that place (or a bracked in this case, anyway it says something is missing).
Like you see, by just READING what the compiler says you can fix already most of the problems.