#1

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.
Reply
#2

BUMP
Reply
#3

BUMP...
Reply
#4

new email[MAX_PLAYERS];
Reply
#5

dini_IntSet(udb_encode(playername), "email", email[playerid];

You didnt close bracket
Reply
#6

error 001: expected token: ",", but found ";"

pawn Код:
dini_IntSet(udb_encode(playername), "email", email[playerid];
Reply
#7

Isn't it overly clear that you forgot a round bracket? I mean, how stupid do you need to be to not see it?
Reply
#8

LOL,i feel sleeping,i'm not stupid.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)