Jump to content
  • 0

Eroare


Shad0wdpbgd

Question

Salut, am aceasta eroare, stie cineva cum sa o rezolve? As fi recunoscator, multumesc.

error 040: duplicate "case" label (value 17)

cod:
                    case 17..35: {
                        amount = random(6) + 13;
                        if(CrateType[i] == 1) amount+= 5;
                        format(string, sizeof(string), "~r~Crate System~w~~h~~n~~n~Step: %d/30~n~~b~%sx PP", 30-CrateTime[i], FormatNumber(amount));
                        PlayerTextDrawSetString(i, CrateTD, string);
                        if(CrateTime[i] == 0) PlayerInfo[i][pPremiumPoints] += amount, Update(i, pPremiumPoints), PlayerTextDrawHide(i, CrateTD), format(string, sizeof(string), "Felicitari, %s! Ai castigat %s puncte premium.", GetName(i), FormatNumber(amount));
                        SCM(i, COLOR_YELLOW, string);
                    }

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

probabil inainte de 
case 17..35: { 
codul;



mai ai case x..17 {cod}
in loc de 17 la a 2 a modifica cu 18 si tot asa pentru ca daca sunt de 2 ori cum e acum de exemplu : x..17 {cod} 17..x{cod} iti va da eroarea de mai sus.

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.