• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Avesta for 7.6, exp-rate with decimals, declare identifier

Hellrage

Worr
Joined
Oct 30, 2007
Messages
2,477
Reaction score
5
Location
Sweden
Im using Avesta (0.6.3) for version 7.72.

I changed...

Code:
m_confInteger[RATE_EXPERIENCE] = getGlobalNumber(L, "RateExp", 1);

... in configmanager.cpp to...

Code:
m_confDouble[RATE_EXPERIENCE] = getGlobalNumber(L, "RateExp", 1);

... in order to be able to choose a decimal number as RateExp in config.lua.


Then I added...

Code:
	enum double_config_t {
		RATE_EXPERIENCE,
		LAST_DOUBLE_CONFIG/* this must be the last one */
	};

... in configmanager.h. But when I compile I still get error message...

1>.\configmanager.cpp(121) : error C2065: 'm_confDouble' : undeclared identifier

Questions:

1. Am I anywhere near a solution? (I never used C++ before)

2. Should I use double for this?

3. How can I declare identifier? I want to use m_confDouble
 

Similar threads

Back
Top