Jump to content
×
×
  • Create New...
  • 0

4 Inventory pages bug grid


Speachless

Question

  • 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

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.