Shad0wdpbgd Posted December 24, 2020 Posted December 24, 2020 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); }
0 Banditul Posted December 24, 2020 Posted December 24, 2020 Inseamna ca in acel switch ai doua lini care ambele rezulta in case 17
0 Kira. Posted January 8, 2021 Posted January 8, 2021 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.
Question
Shad0wdpbgd
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now