• 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!

[C++] game.cpp

Roddet

Staff member
Global Moderator
Joined
May 1, 2013
Messages
949
Solutions
103
Reaction score
770
Location
Mex
Hello, i need some help.

I'm not very good in c++, the thing is i want add the symbol (-) to the damage points but i can't find the Buffer or AnimatedText of the damage points in this code.

code http://pastebin.com/F4a1rPAs
full game.cpp http://pastebin.com/hunPSk0u

I will appreciate.
 
Last edited:
isnt it this part here?
PHP:
                        std::stringstream ss;
                        char buffer[20];
                        sprintf(buffer, "+%d", healthChange);
                        addAnimatedText(list, targetPos, COLOR_MAYABLUE, buffer);
                        if(!textList.empty())

What if you just add a - to the buffer?
 
nope that is the healing buffer and i want it in the damage buffer.

BUMP!
 
@Restles, dont works.

@Armaggedon, Yes i know, i've done that like 20 times in a TFS cuz is easy to find the damage buffer but this is a OTx and the code is really different.
 
Last edited:
@UP, was sprintf(buffer, "-%d", damage); and editing others parts of the code, anyways thanks.

SOLVED by myself.
 
Back
Top