Tak to znowu ja i moje problemy XD
[CPP]std::string value;
if(player->getStorage(5000, value))
{
if(atoi(value.c_str()) == 1)
{
type = MSG_CHANNEL_RA;
}
}[/CPP]
by [MENTION=4185]fabian766[/MENTION]
Niech chce mi skomplikowa?* tego fragmentu, wywala:
[CPP]In member function `bool ChatChannel::talk(Player*, MessageClasses, const std::string&, uint32_t)':
invalid conversion from `int' to `const char*'
initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
[Build Error] [../o/chat.o] Error 1
[/CPP]
Dodam, ?e w TFS 0.3 kompiluje bez jakiejkolwiek zmiany, a w 0.4 ju? sobie nie radzi. Ma kto? jaki? pomys??
---------- Tre?? dodana o 14:44 ----------
Kto? ma jaki? pomys??
[CPP]std::string value;
if(player->getStorage(5000, value))
{
if(atoi(value.c_str()) == 1)
{
type = MSG_CHANNEL_RA;
}
}[/CPP]
by [MENTION=4185]fabian766[/MENTION]
Niech chce mi skomplikowa?* tego fragmentu, wywala:
[CPP]In member function `bool ChatChannel::talk(Player*, MessageClasses, const std::string&, uint32_t)':
invalid conversion from `int' to `const char*'
initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
[Build Error] [../o/chat.o] Error 1
[/CPP]
Dodam, ?e w TFS 0.3 kompiluje bez jakiejkolwiek zmiany, a w 0.4 ju? sobie nie radzi. Ma kto? jaki? pomys??
---------- Tre?? dodana o 14:44 ----------
Kto? ma jaki? pomys??