TFS 1.X+ Trying to add hitcolor in 1.3

roriscrave

Intermediate OT User
Joined
Dec 7, 2011
Messages
509
Best answers
12
Reaction score
54
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
284
Best answers
5
Reaction score
99
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

Intermediate OT User
Joined
Dec 7, 2011
Messages
509
Best answers
12
Reaction score
54
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

Intermediate OT User
Joined
Dec 7, 2011
Messages
509
Best answers
12
Reaction score
54
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
284
Best answers
5
Reaction score
99
an d in enums.h

enum CombatParam_t << there?
 
Top