C++
combat.cpp
player.cpp
I Got Error When I Try to compile Those Files
http://otland.net/f35/pvp-enabled-disabled-74132/
PVP ENABLED/DISABLED
Help me please dont know why i got that error
combat.cpp
In static member function 'static bool Combat::isProtected(Player*, Player*)':
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>]'
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>]'
player.cpp
error: invalid conversion from 'int' to 'const char*'
player.cpp:240: error: 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>]'
I Got Error When I Try to compile Those Files
http://otland.net/f35/pvp-enabled-disabled-74132/
PVP ENABLED/DISABLED
Help me please dont know why i got that error
Last edited: