TFS 1.X+ Trying to add hitcolor in 1.3

roriscrave

Well-Known Member
Joined
Dec 7, 2011
Messages
740
Best answers
18
Reaction score
89
Hello, when trying to add hitcolor in tfs 1.3. I had the following error while compiling, what can it be?
In the combat.h file I added these two points, which are giving error during compilation.
obs: (I am following the functions of tfs 0.4 and making the necessary adjustments, but gave me the doubt at this part)
1565848175878.png
 

Perun

nems.online
Premium User
Joined
May 1, 2009
Messages
294
Best answers
5
Reaction score
116
You trying assign color value before variable, Just do
TextColor_t color = TEXTCOLOR_NONE;

//Your version would work if you will make it like:
TextColor_t color;
color = TEXTCOLOR_NONE

:D
 
OP
R

roriscrave

Well-Known Member
Joined
Dec 7, 2011
Messages
740
Best answers
18
Reaction score
89
THX Bro...and now get this error, what this error means?
it already registred in luascript.cpp
Code:
registerEnum(COMBAT_PARAM_HITCOLOR)
1565865408754.png
 
OP
R

roriscrave

Well-Known Member
Joined
Dec 7, 2011
Messages
740
Best answers
18
Reaction score
89
You trying assign color value before variable, Just do
TextColor_t color = TEXTCOLOR_NONE;

//Your version would work if you will make it like:
TextColor_t color;
color = TEXTCOLOR_NONE

:D
 

Perun

nems.online
Premium User
Joined
May 1, 2009
Messages
294
Best answers
5
Reaction score
116
an d in enums.h

enum CombatParam_t << there?
 
Top