Jump to content
  • 0

Ajutor


KraPsY

Question

        case DIALOG_EMAIL: {
            if(!response)
                return Kick(playerid);

            if(strlen(inputtext) < 6 || strlen(inputtext) > 32)
                return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email", "Seteaza-ti adresa de email:", "Select", "Cancel");
                
            gQuery[0] = EOS;
            mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'", inputtext, PlayerInfo[playerid][pSQLID]);
            mysql_tquery(SQL, gQuery, "", "");
            
            gString[0] = EOS;
            format(gString, sizeof(gString), "Email setat: %s.", inputtext);
            SCM(playerid, -1, gString);

            format(PlayerInfo[playerid][pEmail], 32, inputtext);
            
            ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Gender", "Seteaza-ti sexul:", "Masculin", "Feminin");
        }
 

C:\Users\Lenovo\Desktop\samp server by KraPsY\gamemodes\tuts.pwn(161) : error 040: duplicate "case" label (value 1)

ce fel de eroare este?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 2/28/2020 at 12:46 AM, KraPsY said:

Nu l-am mai folosit deloc, e prima oara ca il folosesc, doar ca imi da eroarea asta cand introduc asta:

        case DIALOG_ANSWER: {            
            if(!response) {
                SondajVotes[1] ++;
                SCM(playerid, COLOR_GOLD, "Votul tau este negativ!");
            }
            else {
                SondajVotes[0] ++;
                SCM(playerid, COLOR_GOLD, "Votul tau este pozitiv!");
            }
            SetPVarInt(playerid, "Voted", 1);
        }

Edited by KraPsY
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.