Felipe93
Ghost Member
Hello Otlanders
well im trying to add cast system to OTHIRE 1.0
i copied the code that @Nottinghster posted at this thread
[8.6x] OTServ 0.6.4 (Cast System)
i know i copy paste // edited everything properly but im having certain troubles
i searched for some solutions at google but i don't understand how to re-write those lines to delete these errors
the problem its related to Protocolgame.cpp and protocollogin.cpp
can anyone help me please?
maybe @Ezzz , @ond @Peonso ?
here it's the protocolgame.cpp file
https://ghostbin.com/paste/4vk4f
and here protocollogin.cpp file
https://ghostbin.com/paste/gp49z
AHH PLUS SOME ERRORS RELATED TO LIB REGARDING PROTOCOLGAME.CPP AND PROTOCOLLOGIN.CPP
regards and thanks in advance
well im trying to add cast system to OTHIRE 1.0
i copied the code that @Nottinghster posted at this thread
[8.6x] OTServ 0.6.4 (Cast System)
i know i copy paste // edited everything properly but im having certain troubles
i searched for some solutions at google but i don't understand how to re-write those lines to delete these errors
the problem its related to Protocolgame.cpp and protocollogin.cpp
Code:
>source\protocollogin.cpp(96): error C2228: left of '.empty' must have class/struct/union
1> type is 'uint32_t'
1> rsa.cpp
1>source\protocolgame.cpp(409): error C2228: left of '.empty' must have class/struct/union
1> type is 'uint32_t'
can anyone help me please?
maybe @Ezzz , @ond @Peonso ?
here it's the protocolgame.cpp file
https://ghostbin.com/paste/4vk4f
Code:
bool castAccount = false;
if(accnumber.empty()) { ERROR HERE (ACCNUMBER)
if(g_config.getBoolean(ConfigManager::ENABLE_CAST))
castAccount = true;
else {
g_bans.addLoginAttempt(getIP(), false);
getConnection()->closeConnection();
return false;
}
}
and here protocollogin.cpp file
https://ghostbin.com/paste/gp49z
Code:
if(accnumber.empty()){ ERROR HERE (ACCNUMBER)
if(g_config.getBoolean(ConfigManager::ENABLE_CAST))
castAccount = true;
else {
//Tibia sends this message if the account name length is < 5
//We will send it only if account name is BLANK
disconnectClient(0x0A, "Invalid Account Name.");
return false;
}
}
AHH PLUS SOME ERRORS RELATED TO LIB REGARDING PROTOCOLGAME.CPP AND PROTOCOLLOGIN.CPP
Code:
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2825: 'F': must be a class or namespace when followed by '::'
1> C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind_template.hpp(15) : see reference to class template instantiation 'boost::_bi::result_traits<R,F>' being compiled
1> with
1> [
1> R=boost::_bi::unspecified,
1> F=bool (__thiscall Game::* )(uint32_t,ProtocolGame *)
1> ]
1> source\protocolgame.cpp(669) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' being compiled
1> with
1> [
1> R=boost::_bi::unspecified,
1> F=bool (__thiscall Game::* )(uint32_t,ProtocolGame *),
1> L=boost::_bi::list2<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>>
1> ]
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2039: 'result_type' : is not a member of '`global namespace''
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2146: syntax error : missing ';' before identifier 'type'
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2208: 'boost::_bi::type' : no members defined using this type
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): fatal error C1903: unable to recover from previous error(s); stopping compilation
regards and thanks in advance