mimus
New Member
- Joined
- Mar 14, 2012
- Messages
- 168
- Reaction score
- 2
hello everybody!!!! im trying to make the depot been shared between cities, i supose i must recompile, i am trying to edit the player.cpp and the depotlocker.cpp but when i compile i get this error
here is my player.cpp
and here is the depotlocker.cpp
tan(q) for reading!!!!!
C:
/home/mimus/tfs/src/depotlocker.cpp: In constructor ‘DepotLocker::DepotLocker(uint16_t)’:
/home/mimus/tfs/src/depotlocker.cpp:29:2: error: ‘maxDepotItems’ was not declared in this scope
maxDepotItems = 17;
^~~~~~~~~~~~~
CMakeFiles/tfs.dir/build.make:551: recipe for target 'CMakeFiles/tfs.dir/src/depotlocker.cpp.o' failed
make[2]: *** [CMakeFiles/tfs.dir/src/depotlocker.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
here is my player.cpp
C:
DepotChest* depotChest = new DepotChest(ITEM_DEPOT);
depotChest->setDepotId(depotId);
depotChest->incrementReferenceCounter();
depotChest->internalAddThing(Item::CreateItem(25469));
depotChest->internalAddThing(Item::CreateItem(25468));
depotChest->internalAddThing(Item::CreateItem(25467));
depotChest->internalAddThing(Item::CreateItem(25466));
depotChest->internalAddThing(Item::CreateItem(25465));
depotChest->internalAddThing(Item::CreateItem(25464));
depotChest->internalAddThing(Item::CreateItem(25463));
depotChest->internalAddThing(Item::CreateItem(25462));
depotChest->internalAddThing(Item::CreateItem(25461));
depotChest->internalAddThing(Item::CreateItem(25460));
depotChest->internalAddThing(Item::CreateItem(25459));
depotChest->internalAddThing(Item::CreateItem(25458));
depotChest->internalAddThing(Item::CreateItem(25457));
depotChest->internalAddThing(Item::CreateItem(25456));
depotChest->internalAddThing(Item::CreateItem(25455));
depotChest->internalAddThing(Item::CreateItem(25454));
depotChest->internalAddThing(Item::CreateItem(25453));
depotChest->setMaxDepotItems(getMaxDepotItems());
depotChests[depotId] = depotChest;
return depotChest;
}
and here is the depotlocker.cpp
Code:
DepotLocker::DepotLocker(uint16_t _type) :
Container(_type)
{
depotId = 0;
maxSize = 1000;
maxDepotItems = 17;
tan(q) for reading!!!!!