• 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!

Wrong lines

Anothai

:3
Joined
Mar 24, 2008
Messages
641
Reaction score
3
Location
Turtle Tail :'O
Lines from .cpp file.
for(AutoList<Player>::listiterator it = Player::listPlayer.list.begin(); it != Player::listPlayer.list.end(); ++it){

if((*it).second->getAccount() == 1){

(*it).second->masterPos = town1->getTemplePosition();

g_game.internalTeleport((*it).second, (*it).second->getTemplePosition(), TRUE);

}

else if((*it).second->getAccount() == 2){

(*it).second->masterPos = town2->getTemplePosition();

g_game.internalTeleport((*it).second, (*it).second->getTemplePosition(), TRUE);

}

else{

(*it).second->masterPos = town3->getTemplePosition();

g_game.internalTeleport((*it).second, (*it).second->getTemplePosition(), TRUE);

}

(*it).second->changeHealth((*it).second->getMaxHealth());

(*it).second->changeMana((*it).second->getMaxMana());

(*it).second->deleteCon();

std::stringstream statspriv;

statspriv << stats.str().c_str() << "Your stats in all rounds... " << (*it).second->getFrags() << " kills, " << (*it).second->getDies() << " deaths.";

(*it).second->sendTextMessage(MSG_STATUS_CONSOLE_BLUE, statspriv.str().c_str());

}

return 1;

}

And I got this wrong from terminal while im compiling
luascript.cpp: In static member function ‘static int32_t LuaScriptInterface::luaDoChangeMap(lua_State*)’:
luascript.cpp:3645: error: ‘TRUE’ was not declared in this scope
luascript.cpp:3649: error: ‘TRUE’ was not declared in this scope
luascript.cpp:3653: error: ‘TRUE’ was not declared in this scope
make: *** [luascript.o] Error 1
 
I don't know if it will work but try this
change
Code:
g_game.internalTeleport((*it).second, (*it).second->getTemplePosition(), TRUE);
to
Code:
g_game.internalTeleport((*it).second, (*it).second->getTemplePosition()== TRUE);
 
Back
Top