silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 213
hello, I'm trying to implement a store system in my src, but I don't find a soluction when I try compile and get error, follow the error:
here my game.cpp:
thanks in advice.
Code:
/home/adriano/otserver/src/game.cpp:5414:4: error: ‘g_store’ was not declared in this scope
g_store->onTransactionCompleted(player->getAccount(), amount, "Purchased on Market");
^
/home/adriano/otserver/src/game.cpp:5449:5: error: ‘g_store’ was not declared in this scope
g_store->onTransactionCompleted(sellerPlayer->getAccount(), -static_cast<int32_t>(amount), "Sold on Market");
^
/home/adriano/otserver/src/game.cpp:5458:6: error: ‘g_store’ was not declared in this scope
g_store->onTransactionCompleted(sellerPlayer->getAccount(), -static_cast<int32_t>(amount), "Sold on Market");
^
cc1plus: all warnings being treated as errors
CMakeFiles/tfs.dir/build.make:623: recipe for target 'CMakeFiles/tfs.dir/src/game.cpp.o' failed
make[2]: *** [CMakeFiles/tfs.dir/src/game.cpp.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Code:
http://hastebin.com/evoqoforec.cpp