Jump to content

Error 040!


Miki Romania

Recommended Posts

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 
}

 

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
Reply to this topic...

×   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.

  • Similar Content

    • By TheGodfather
      Salut, aveti idee cum pot sa rezolv problema aceasta?
      [02:54:59] Loading plugin: streamer.so
      [02:54:59] Failed (/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by plugins/streamer.so))
    • By Matei02Mihai
      Salut. Am vrut sa fac un gamemode micut pentru vizualizarea modpack-urilor, dar atunci cand pornesc serverul, imi da eroarea <<[09:35:17] Script[gamemodes/modpacks.amx]: Run time error 19: "File or function is not found">>. Am incercat sa pun acelasi gamemode pe un alt server. Acolo imi merge cum trebuie. Daca intru pe server cu acea eroare, face bugul ala clasic: te da sub pamant in spate la farmer, iar dupa te spawneaza in acelasi loc, dar pe pamant. Am incercat mai multe metode cu care credeam ca pot fixa bugul, cum ar fi:
      - deschiderea serverului cu drepturi de administrator;
      - schimbarea locatiei serverului;
      - instalarea .net framework 3.5;
      - reacerea serverului
      - dezactivare optiunii "Doar in citire"
    • By Wreeper
      Linia in cauza: SetPlayerName(id, amount);
      Daca scot chestia asta, merge total perfect functia..
      De ce se intampla asta?
    • By Andrei SA-MP
      public OnPlayerConnect(playerid) {
           gQuery[0] = EOS;
           mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1', GetName(playerid));
           mysql_tquery(SQL, gQuery, "checkAccount', "i", playerid);
           return 1;
    • By Wreeper
      YCMD:unjail(playerid, params[], help) {
          if(!playerVariables[playerid][pAdmin]) return adminOnly(playerid);
          new id,reason[128];
          
          if(sscanf(params, "uis[128]", id,reason)) return sendUsage(playerid, "/unjail [name/playerid] [reason]");
          if(!isPlayerLogged(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Player not connected.");
          if(playerVariables[id][pJailTime] == 0) return SCM(playerid, COLOR_WHITE, "This player is not in jail.");
          ResetWeapons(id);
          WantedPoints[id] = 0;
          playerVariables[id][pJailed] = 0;
          playerVariables[id][pJailTime] = 0;
          SpawnPlayer(id);
          SendAdminMessage(COLOR_RED2, "Jail: %s was unjailed by %s, reason: %s.", GetName(id), GetName(playerid),reason);
          SCMF(id, COLOR_RED2, "Administrator %s has released you from jail.", GetName(playerid));
          
          UpdateVar( id, "Jailed", playerVariables[ id ][ pJailed ] );
          UpdateVar( id, "JailTime", playerVariables[ id ][ pJailTime ] );
          return 1;
      }
       
      De ce se intampla asa ceva?
      Eroare: (18861) : error 035: argument type mismatch (argument 3)
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.