Players Inventory
#11
I really appreciate what you have done!!Big Grin Unfortunately I cannot compile the latest revision because of compile errors Huh:

Code:
[tbar@arch mc-server-read-only2]# svn up
Updating '.':
At revision 187.
[tbar@arch mc-server-read-only2]# make
/usr/bin/g++ -s -O3 source/cCriticalSection.cpp -c -I. -Isource -Isource/md5 -IWebServer -Isource/packets -Itolua++-1.0.93/src/lib -Ilua-5.1.4/src -Izlib-1.2.5 -IiniFile -Itolua++-1.0.93/include -Ijsoncpp-src-0.5.0/include -Ijsoncpp-src-0.5.0/src/lib_json -o build/cCriticalSection.o
source/cCriticalSection.cpp: In constructor ‘cCSLock::cCSLock(cCriticalSection*)’:
source/cCriticalSection.cpp:91:2: error: class ‘cCSLock’ does not have any field named ‘m_IsLocked’
make: *** [build/cCriticalSection.o] Error 1

I've tried doing a 'make clean' but that changes nothing...

(I'm using ArchLinux...)
Reply
Thanks given by:
#12
Try getting revision 185 (that one should work), the latests updates seem to have broken the Linux buildTongue
Reply
Thanks given by:
#13
You're right rev 185 works perfectly with this plugin! Thanks!Tongue

Looking at the plugin.lua file I wonder where I can see the different possibilities for the cItem? In other words where is E_BLOCK_STONE defined?

And what does 0 mean in cItem( E_BLOCK_STONE, 10, 0 )?

Anyways: Thanks a lot for implementing this plugin!! Smile
Reply
Thanks given by:
#14
E_BLOCK_STONE is defined here: http://code.google.com/p/mc-server/sourc.../BlockID.h
But you can also use a number Smile

cItem takes 3 pameters:
1. Item ID
2. Quantity
3. Item health, for different kinds of logs and dyes
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)