Jump to content

Question

Posted

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);
                    }

2 answers to this question

Recommended Posts

  • 0
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.