Jump to content

4 Inventory pages bug grid


Go to solution Solved by Think,

Recommended Posts

  • Premium

I added in my source : 

 

int iPos = s_grid1.FindBlank(1, item->GetSize());
   if (iPos >= 0)
   {
    s_grid1.Put(iPos, 1, item->GetSize());
   }
   else
   {
    iPos = s_grid2.FindBlank(1, item->GetSize());
    if (iPos >= 0)
    {
     s_grid2.Put(iPos, 1, item->GetSize());
    }
    else
    {
     iPos = s_grid3.FindBlank(1, item->GetSize());
     if (iPos >= 0)
     {
      s_grid3.Put(iPos, 1, item->GetSize());
     }
     else
     {
      iPos = s_grid4.FindBlank(1, item->GetSize());
      if (iPos >= 0)
      {
       s_grid4.Put(iPos, 1, item->GetSize());
      }
      else
      {
        return false;
       }
      }
     }
    }
return true;
}

And i get next error : 

 

 

exchange.cpp: In member function 'bool CExchange::CheckSpace()':
exchange.cpp:452: error: a function-definition is not allowed here before '{' token
exchange.cpp:642: error: expected `}' at end of input
compile input_auth.cpp
gmake: *** [OBJDIR/exchange.o] Error 1

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.