5lave Ots
Active Member
hey guys im using 0.4 and making loot channel system from here
on compile I got this error
and this too
using msvc 2010
monsters.cpp >> OTS.ME Paste 563305 (http://paste.ots.me/563305/)
monsters.h >> OTS.ME Paste 563306 (http://paste.ots.me/563306/)
talkactions.cpp >> OTS.ME Paste 563307 (http://paste.ots.me/563307/)
Feature - Loot Channel
Something I like to use because I am too lazy to open corpses. Nothing too hard that a decent coder couldn't have done. Basically just the broadcastPartyLoot function from SVN changed into broadcastPlayerLoot and a new channel created..anyways here it goes..(Works for both 0.2 and 0.3 TFS)...
otland.net
Code:
1>..\monster.cpp(1249): error C2664: 'Player::broadcastPlayerLoot' : cannot convert parameter 1 from 'Player *' to 'const std::string &'
1> Reason: cannot convert from 'Player *' to 'const std::string'
1> No constructor could take the source type, or constructor overload resolution was ambiguous
Code:
1>..\talkaction.cpp(1363): error C2511: 'bool TalkAction::showLoot(Player *,const std::string &,const std::string &)' : overloaded member function not found in 'TalkAction'
1> e:\src\talkaction.h(66) : see declaration of 'TalkAction'
monsters.cpp >> OTS.ME Paste 563305 (http://paste.ots.me/563305/)
monsters.h >> OTS.ME Paste 563306 (http://paste.ots.me/563306/)
talkactions.cpp >> OTS.ME Paste 563307 (http://paste.ots.me/563307/)