• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Saveplayer in TFS

bncplix

www.MythiaRPG.com
Joined
Mar 30, 2008
Messages
41
Reaction score
0
Well im trying to add a code that works perfectly on latest SVN to TFS. One line im having problems with is this:
Code:
IOPlayer::instance()->savePlayer(it->second);

But, TFS does not use IOPlayer, it uses IOLoginData, but when i changed that it did not work. It said instance is not a part of it, i tried tkaing it out and it still does not work. Does anybody know what I should use?
 
IOLoginData::getInstance()->savePlayer((*it).second);
or
IOLoginData::getInstance()->savePlayer(it->)second);

One of those two might work for ya.
 
For the first one:
Code:
game.cpp:4849: error: no matching function for call to `IOLoginData::savePlayer(Player*&)'
iologindata.h:68: note: candidates are: bool IOLoginData::savePlayer(Player*, bool)

Using the second one:
Code:
game.cpp:4849: error: expected unqualified-id before ')' token
game.cpp:4849: error: expected `;' before "second"


Any ideas?
 
IOLoginData::getInstance()->savePlayer(it->second);
 
Well the server crashed and since in the config you can only set hourly saves, all characters got reset a hour back. I really need somebody to show me how to get this to work!
 
Back
Top