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

Compiling TFS 0.2.8 Compiling Error

EvilSkillz

Back
Joined
Jul 12, 2012
Messages
1,810
Solutions
2
Reaction score
388
Location
Egypt - Cairo
Hello I used Stain Dev v 2 for compile
can't use codeblocks cuz I don't know why I can get library :O

anyway

I have this error
Code:
  D:\Others\TFS 0.2.8 (8.60) Source\commands.cpp In member function `void Commands::playerKills(Player*, const std::string&, const std::string&)':
1286 D:\Others\TFS 0.2.8 (8.60) Source\commands.cpp [Warning] converting to `int32_t' from `double'
1288 D:\Others\TFS 0.2.8 (8.60) Source\commands.cpp [Warning] converting to `int32_t' from `double'
1289 D:\Others\TFS 0.2.8 (8.60) Source\commands.cpp [Warning] converting to `int32_t' from `double'

here are those lines
Code:
 int32_t frags = ceil(player->redSkullTicks / (double)fragTime);
 int32_t remainingTime = (player->redSkullTicks % fragTime) / 1000;
 int32_t hours = floor(remainingTime / 3600);
 int32_t minutes = floor((remainingTime % 3600) / 60);
 
Back
Top