miXXed1991

Errormessage 'M' encountered instead of '{'

13 posts in this topic

Hey Guys 

I keep getting the error: * ErrorMessage: File mpmissions\__cur_mp.Altis\config.cpp, line 6390: /CfgTraderCategories/: 'M' encountered instead of '{' *

Im trying to install CUP_Weapons but i cant find the error.

Can you help me please? :$

Here is the full Config.cpp 

https://pastebin.com/3xKkSHE8

Edited by miXXed1991

Share this post


Link to post
Share on other sites

@miXXed1991

The 1st issue I noticed is that your class names have spaces. This is not good.

For example, you have "class CUP Muzzle Attachments". You should change that to something like "class CUPMuzzleAttachments"

Share this post


Link to post
Share on other sites
Advertisement
5 minutes ago, miXXed1991 said:

i'll fix this .. :) .. thank you <3

No Problem

Also be sure to fix not only the class names in CfgTraderCategories section, but their counterparts in the CfgTraders section

Share this post


Link to post
Share on other sites

fixed it .. have a look at the new config.cpp .. :)

Im giving it a try now! .. 

Edited by miXXed1991

Share this post


Link to post
Share on other sites

At quick glance, it looks better. Give it a shot and see what happens.

Share this post


Link to post
Share on other sites

okay .. i can connect .. but the only thing i see is gras :D .. i think im lying on the ground? .. :o 

oh and .. after a minute or two .. the server decides to kick me 

Edited by miXXed1991

Share this post


Link to post
Share on other sites

check rpt, check extdb-log - database issue.

Edited by WURSTKETTE

Share this post


Link to post
Share on other sites

The server is kicking you because you're not spawning. You would need to let us see your RPT file if you're not finding it in there.

Also, I noticed that you left in weapons with attachments. This can lead to duping, etc.. You'll eventually see this referenced in your RPT file after a big block of "ERROR". I cleaned out those weapons with attachments from the CfgTraderCategories section and posted the changes in the spoiler below. You would still need to remove those items from the pricing section though.

Spoiler

    class CUPHandGuns 
    {
        name = "CUP Pistols";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\handgun_ca.paa";
        items[] = 
        {
            "CUP_hgun_Colt1911",
            "CUP_hgun_Compact",
            "CUP_hgun_Duty_M3X",
            "CUP_hgun_Glock17",
            "CUP_hgun_M9",
            "CUP_hgun_Makarov",
            "CUP_hgun_PB6P9",
            "CUP_hgun_MicroUzi",
            "CUP_hgun_TaurusTracker455",
            "CUP_hgun_TaurusTracker455_gold",
            "CUP_hgun_SA61",
            "CUP_hgun_Duty",
            "CUP_hgun_Phantom" 
        };
    };

    class CUPSubMachineGuns 
    {
        name = "CUP SMG";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_smg_bizon",
            "CUP_smg_EVO",
            "CUP_smg_MP5SD6",
            "CUP_smg_MP5A5" 
        };
    };

    class CUPLightMachineGuns 
    {
        name = "CUP Light Machine Guns";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_lmg_L7A2",
            "CUP_lmg_L110A1",
            "CUP_lmg_M60A4",
            "CUP_lmg_M240",
            "CUP_lmg_M249",
            "CUP_lmg_M249_para",
            "CUP_lmg_Mk48_des",
            "CUP_lmg_Mk48_wdl",
            "CUP_lmg_PKM",
            "CUP_lmg_UK59",
            "CUP_lmg_Pecheneg" 
        };
    };

    class CUPAssaultRifles
    {
        name = "CUP Assault Rifles";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_arifle_AK74",
            "CUP_arifle_AK107",
            "CUP_arifle_AK107_GL",
            "CUP_arifle_AKS74",
            "CUP_arifle_AKS74U",
            "CUP_arifle_AK74_GL",
            "CUP_arifle_AKM",
            "CUP_arifle_AKS",
            "CUP_arifle_AKS_Gold",
            "CUP_arifle_RPK74",
            "CUP_arifle_CZ805_A2",
            "CUP_arifle_FNFAL",
            "CUP_arifle_FNFAL_railed",
            "CUP_arifle_G36A",
            "CUP_arifle_G36A_camo",
            "CUP_arifle_G36K",
            "CUP_arifle_G36K_camo",
            "CUP_arifle_G36C",
            "CUP_arifle_G36C_camo",
            "CUP_arifle_MG36",
            "CUP_arifle_MG36_camo",
            "CUP_arifle_ksvk_PSO3",
            "CUP_arifle_L85A2",
            "CUP_arifle_L85A2_GL",
            "CUP_arifle_L86A2",
            "CUP_arifle_M16A2",
            "CUP_arifle_M16A2_GL",
            "CUP_arifle_M16A4_GL",
            "CUP_arifle_M4A1",
            "CUP_arifle_M4A1_camo",
            "CUP_arifle_M16A4_Base",
            "CUP_arifle_M16A4GL",
            "CUP_arifle_M4A1_BUIS_GL",
            "CUP_arifle_M4A1_BUIS_camo_GL",
            "CUP_arifle_M4A1_BUIS_desert_GL",
            "CUP_arifle_M4A1_black",
            "CUP_arifle_M4A1_desert",
            "CUP_arifle_Sa58P",
            "CUP_arifle_Sa58V",
            "CUP_arifle_Mk16_CQC",
            "CUP_arifle_XM8_Compact_Rail",
            "CUP_arifle_XM8_Railed",
            "CUP_arifle_XM8_Carbine",
            "CUP_arifle_XM8_Carbine_FG",
            "CUP_arifle_XM8_Carbine_GL",
            "CUP_arifle_XM8_Compact",
            "CUP_arifle_xm8_SAW",
            "CUP_arifle_xm8_sharpshooter",
            "CUP_arifle_CZ805_A1",
            "CUP_arifle_CZ805_GL",
            "CUP_arifle_CZ805_B_GL",
            "CUP_arifle_CZ805_B",
            "CUP_arifle_Sa58P_des",
            "CUP_arifle_Sa58V_camo",
            "CUP_arifle_Sa58RIS1",
            //"CUP_arifle_Sa58RIS1_des",    //may be broken
            "CUP_arifle_Sa58RIS2",
            "CUP_arifle_Sa58RIS2_camo",
            "CUP_arifle_Mk16_CQC_FG",
            "CUP_arifle_Mk16_CQC_SFG",
            "CUP_arifle_Mk16_CQC_EGLM",
            "CUP_arifle_Mk16_STD",
            "CUP_arifle_Mk16_STD_FG",
            "CUP_arifle_Mk16_STD_SFG",
            "CUP_arifle_Mk16_STD_EGLM",
            "CUP_arifle_Mk16_SV",
            "CUP_arifle_Mk17_CQC",
            "CUP_arifle_Mk17_CQC_FG",
            "CUP_arifle_Mk17_CQC_SFG",
            "CUP_arifle_Mk17_CQC_EGLM",
            "CUP_arifle_Mk17_STD",
            "CUP_arifle_Mk17_STD_FG",
            "CUP_arifle_Mk17_STD_SFG",
            "CUP_arifle_Mk17_STD_EGLM",
            "CUP_arifle_Mk20",
            "CUP_sgun_AA12",
            "CUP_sgun_M1014",
            "CUP_sgun_Saiga12K"
        };
    };

    class CUPSniperRifles
    {
        name = "CUP Sniper Rifles";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_srifle_AWM_des",
            "CUP_srifle_AWM_wdl",
            "CUP_srifle_CZ750",
            "CUP_srifle_DMR",
            "CUP_srifle_CZ550",
            "CUP_srifle_LeeEnfield",
            "CUP_srifle_M14",
            /* "CUP_srifle_M15_Aim", */
            "CUP_srifle_Mk12SPR",
            "CUP_srifle_M24_des",
            "CUP_srifle_M24_wdl",
            "CUP_srifle_M40A3",
            "CUP_srifle_M107_Base",
            "CUP_srifle_M110",
            "CUP_srifle_SVD",
            "CUP_srifle_SVD_des",
            "CUP_srifle_ksvk",
            "CUP_srifle_VSSVintorez",
            "CUP_srifle_AS50" 
        };
    };

 

Edited by Kurewe

Share this post


Link to post
Share on other sites
13 minutes ago, Kurewe said:

The server is kicking you because you're not spawning. You would need to let us see your RPT file if you're not finding it in there.

Also, I noticed that you left in weapons with attachments. This can lead to duping, etc.. You'll eventually see this referenced in your RPT file after a big block of "ERROR". I cleaned out those weapons with attachments from the CfgTraderCategories section and posted the changes in the spoiler below. You would still need to remove those items from the pricing section though.

  Reveal hidden contents

    class CUPHandGuns 
    {
        name = "CUP Pistols";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\handgun_ca.paa";
        items[] = 
        {
            "CUP_hgun_Colt1911",
            "CUP_hgun_Compact",
            "CUP_hgun_Duty_M3X",
            "CUP_hgun_Glock17",
            "CUP_hgun_M9",
            "CUP_hgun_Makarov",
            "CUP_hgun_PB6P9",
            "CUP_hgun_MicroUzi",
            "CUP_hgun_Phantom_Flashlight",
            "CUP_hgun_TaurusTracker455",
            "CUP_hgun_TaurusTracker455_gold",
            "CUP_hgun_SA61",
            "CUP_hgun_Duty",
            "CUP_hgun_Phantom" 
        };
    };

    class CUPSubMachineGuns 
    {
        name = "CUP SMG";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_smg_bizon",
            "CUP_smg_EVO",
            "CUP_smg_MP5SD6",
            "CUP_smg_MP5A5" 
        };
    };

    class CUPLightMachineGuns 
    {
        name = "CUP Light Machine Guns";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_lmg_L7A2",
            "CUP_lmg_L110A1",
            "CUP_lmg_M60A4",
            "CUP_lmg_M240",
            "CUP_lmg_M249",
            "CUP_lmg_M249_para",
            "CUP_lmg_Mk48_des",
            "CUP_lmg_Mk48_wdl",
            "CUP_lmg_PKM",
            "CUP_lmg_UK59",
            "CUP_lmg_Pecheneg" 
        };
    };

    class CUPAssaultRifles
    {
        name = "CUP Assault Rifles";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_arifle_AK74",
            "CUP_arifle_AK107",
            "CUP_arifle_AK107_GL",
            "CUP_arifle_AKS74",
            "CUP_arifle_AKS74U",
            "CUP_arifle_AK74_GL",
            "CUP_arifle_AKM",
            "CUP_arifle_AKS",
            "CUP_arifle_AKS_Gold",
            "CUP_arifle_RPK74",
            "CUP_arifle_CZ805_A2",
            "CUP_arifle_FNFAL",
            "CUP_arifle_FNFAL_railed",
            "CUP_arifle_G36A",
            "CUP_arifle_G36A_camo",
            "CUP_arifle_G36K",
            "CUP_arifle_G36K_camo",
            "CUP_arifle_G36C",
            "CUP_arifle_G36C_camo",
            "CUP_arifle_MG36",
            "CUP_arifle_MG36_camo",
            "CUP_arifle_ksvk_PSO3",
            "CUP_arifle_L85A2",
            "CUP_arifle_L85A2_GL",
            "CUP_arifle_L86A2",
            "CUP_arifle_M16A2",
            "CUP_arifle_M16A2_GL",
            "CUP_arifle_M16A4_GL",
            "CUP_arifle_M4A1",
            "CUP_arifle_M4A1_camo",
            "CUP_arifle_M16A4_Base",
            "CUP_arifle_M16A4GL",
            "CUP_arifle_M4A1_BUIS_GL",
            "CUP_arifle_M4A1_BUIS_camo_GL",
            "CUP_arifle_M4A1_BUIS_desert_GL",
            "CUP_arifle_M4A1_black",
            "CUP_arifle_M4A1_desert",
            "CUP_arifle_Sa58P",
            "CUP_arifle_Sa58V",
            "CUP_arifle_Mk16_CQC",
            "CUP_arifle_XM8_Compact_Rail",
            "CUP_arifle_XM8_Railed",
            "CUP_arifle_XM8_Carbine",
            "CUP_arifle_XM8_Carbine_FG",
            "CUP_arifle_XM8_Carbine_GL",
            "CUP_arifle_XM8_Compact",
            "CUP_arifle_xm8_SAW",
            "CUP_arifle_xm8_sharpshooter",
            "CUP_arifle_CZ805_A1",
            "CUP_arifle_CZ805_GL",
            "CUP_arifle_CZ805_B_GL",
            "CUP_arifle_CZ805_B",
            "CUP_arifle_Sa58P_des",
            "CUP_arifle_Sa58V_camo",
            "CUP_arifle_Sa58RIS1",
            //"CUP_arifle_Sa58RIS1_des",    //may be broken
            "CUP_arifle_Sa58RIS2",
            "CUP_arifle_Sa58RIS2_camo",
            "CUP_arifle_Mk16_CQC_FG",
            "CUP_arifle_Mk16_CQC_SFG",
            "CUP_arifle_Mk16_CQC_EGLM",
            "CUP_arifle_Mk16_STD",
            "CUP_arifle_Mk16_STD_FG",
            "CUP_arifle_Mk16_STD_SFG",
            "CUP_arifle_Mk16_STD_EGLM",
            "CUP_arifle_Mk16_SV",
            "CUP_arifle_Mk17_CQC",
            "CUP_arifle_Mk17_CQC_FG",
            "CUP_arifle_Mk17_CQC_SFG",
            "CUP_arifle_Mk17_CQC_EGLM",
            "CUP_arifle_Mk17_STD",
            "CUP_arifle_Mk17_STD_FG",
            "CUP_arifle_Mk17_STD_SFG",
            "CUP_arifle_Mk17_STD_EGLM",
            "CUP_arifle_Mk20",
            "CUP_sgun_AA12",
            "CUP_sgun_M1014",
            "CUP_sgun_Saiga12K"
        };
    };

    class CUPSniperRifles
    {
        name = "CUP Sniper Rifles";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "CUP_srifle_AWM_des",
            "CUP_srifle_AWM_wdl",
            "CUP_srifle_CZ750",
            "CUP_srifle_DMR",
            "CUP_srifle_CZ550",
            "CUP_srifle_LeeEnfield",
            "CUP_srifle_M14",
            /* "CUP_srifle_M15_Aim", */
            "CUP_srifle_Mk12SPR",
            "CUP_srifle_M24_des",
            "CUP_srifle_M24_wdl",
            "CUP_srifle_M40A3",
            "CUP_srifle_M107_Base",
            "CUP_srifle_M110",
            "CUP_srifle_SVD",
            "CUP_srifle_SVD_des",
            "CUP_srifle_ksvk",
            "CUP_srifle_VSSVintorez",
            "CUP_srifle_AS50" 
        };
    };

 

Okay i changed it in my config again .. :)

which RPT do you need? .. the one from the server or the one from my appdata? 

https://pastebin.com/scx6WCX1 .. <-- New Config.cpp 

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.