• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Windows Arithmetic Bug on C++ TFS 8.6

eduardbean

Member
Joined
Nov 26, 2010
Messages
129
Solutions
2
Reaction score
16
Im trying to do :

Code:
[/CENTER]
std::cout << "\tMAX HEALTH: " << target->getMaxHealth() << std::endl;
                    std::cout << "\tEXPERIENCE: " << g_monsters.getMonsterType(monster_id)->experience << std::endl;
                    std::cout << "\tDAMAGE: " << damage << std::endl;
                    std::cout << "\tEXP WIN: " << std::floor(damage / target->getMaxHealth() * (int32_t) g_monsters.getMonsterType(monster_id)->experience) << std::endl;

But ever it returns 0

HgxdEv3.png


Some one knows whats is happening ?
 
Code:
g_monsters.getMonsterType(popString(L))
Copied form Luascript.cpp as you can see .. "getMonsterType" Accepts String..,maybe it accepts int, but you should try ->getName()
 

Similar threads

Back
Top