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

Windows I have problem in Compile TFS

unicodem

New Member
Joined
Dec 18, 2011
Messages
48
Reaction score
1
\luascript.cpp In member function `bool LuaScriptInterface::loadDirectory(const std::string&, Npc*)':
\luascript.cpp 'struct std::string' has no member named 'string'


Code:
bool LuaScriptInterface::loadDirectory(const std::string& dir, Npc* npc/* = NULL*/)
{
    StringVec files;
    for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
    {
        std::string s = it->leaf();
            s = it->path().filename().string();
        if(!boost::filesystem::is_directory(it->status()) && (s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
            files.push_back(s);
    }
 
Back
Top