Hi, I wrote this little code, and when compiling an error occurs...
Error:
why this is happening?
Code:
Player* playerNow = getPlayer();
uint32_t storageId = g_config.getNumber(ConfigManager::PLAYER_BATTLE_STORAGE);
std::string value;
std::string value2;
if (targetPlayer->getStorageValue(storageId, value) && atoi(value.c_str()) == playerNow->getGUID() && getStorageValue(storageId, value2) && atoi(value2.c_str()) == targetPlayer->getGUID())
return;
Error:
player.cpp: In member function 'virtual void Player:nAttackedCreature(Creature*)':
player.cpp:3555: warning: comparison between signed and unsigned integer expressions
why this is happening?