Jump to content

Recommended Posts

Posted

Help, cand dau compile imi da eroarea asta "error 040: duplicate "case" label (value 5)"

Asta e linia:

Quote

        case DIALOG_JOBS: {
            new string[256];
            if(!response) return 1;
            listitem = GetPVarInt(playerid, "listitem");
            switch(listitem) {
                case 0: {
                    format(string, sizeof(string), "Ti-am trimis coordonatele de la jobul Farmer");
                    SetPlayerCheckpoint(playerid, -382.7026,-1426.6471,26.2501, 5.0);
                }
                case 1: {
                    format(string, sizeof(string), "Esti ok?");
                }
            }
            SCM(playerid, COLOR_WHITE, string);
        }

Si astea sunt dialog-urile de le am:

Quote

enum {
    //REGISTER
       DIALOG_REGISTER,
    DIALOG_EMAIL,
    DIALOG_GENDER,

    //Login// 
    DIALOG_LOGIN,

    //RENT// 
    DIALOG_RENT,

    //Jobs// 
    DIALOG_JOBS 
}

 

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.