• 0
Sign in to follow this  
NeverAgain

[Solved]CfgFunctions

Question

Please i really need help.I try to add IMS but i use another script and my rpt say: ErrorMessage: File mpmissions\__cur_mp.Chernarus\description.ext, line 82: .CfgFunctions: Member already defined.

In my description is this script ( 1 ) :

// Halo Jump
class CfgFunctions
{
    #include "ExHP\config.cpp"
};

And here is ExHP\config.cpp :

class ExHP
{
	tag = "ExHP";
	class Main
	{
		file = "ExHP\Functions";
		class ejectPlayer {};
		class pullParachute {};
		class showEject {};
		class showParachute {};
		class customize {file = "ExHP\postInit.sqf"; postInit = 1;};
	};
};

 

How to add this script ( 2 ) ??? I try eveything :-/

CfgFunctions.hpp from script ( 2 ) :

class CfgFunctions 
{
	class Exile_Client_Core 
	{
		tag = "IMS";
		class Functions
		{
			file = "core\functions";
			class EndTimer {};
		};
	};
};

 

Edited by NeverAgain

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
3 hours ago, NeverAgain said:

Please i really need help.I try to add IMS but i use another script and my rpt say: ErrorMessage: File mpmissions\__cur_mp.Chernarus\description.ext, line 82: .CfgFunctions: Member already defined.

In my description is this script ( 1 ) :

// Halo Jump
class CfgFunctions
{
    #include "ExHP\config.cpp"
};

And here is ExHP\config.cpp :


class ExHP
{
	tag = "ExHP";
	class Main
	{
		file = "ExHP\Functions";
		class ejectPlayer {};
		class pullParachute {};
		class showEject {};
		class showParachute {};
		class customize {file = "ExHP\postInit.sqf"; postInit = 1;};
	};
};

 

How to add this script ( 2 ) ??? I try eveything :-/

CfgFunctions.hpp from script ( 2 ) :


class CfgFunctions 
{
	class Exile_Client_Core 
	{
		tag = "IMS";
		class Functions
		{
			file = "core\functions";
			class EndTimer {};
		};
	};
};

 

Try this
 

class CfgFunctions
{
    #include "ExHP\config.cpp"
	class Exile_Client_Core
    {
        tag = "IMS";
        class Functions
        {
            file = "core\functions";
            class EndTimer {};
        };
    };

}; 

in example in your description.ext are allready define class CFGFunktion

is simple too understand you have different classes inside off cfgFunktion in example class EXHP. the other new one class Exile_Client_Core are also need too put inside. but not inside the class EXHP. with the include funktion your split off the class ExHP too another place. here are the complete class CFGFunktion.

class CfgFunctions
{
	class ExHP
		{
			tag = "ExHP";
			class Main
			{
				file = "ExHP\Functions";
				class ejectPlayer {};
				class pullParachute {};
				class showEject {};
				class showParachute {};
				class customize {file = "ExHP\postInit.sqf"; postInit = 1;};
			};
		};
	class Exile_Client_Core 
		{
			tag = "IMS";
			class Functions
				{
					file = "core\functions";
					class EndTimer {};
				};
		};

}; 

Hopefully it will helping your too understand this. :) And dont forget too push the like button :D

Edited by Sgt. ScrapMetal
  • Like 2

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.