Remember to put new() in there. It should be : new/obj/knives/knife(src), src is the location and /obj/knives/knife is the type of object to create.
To make it so the player sees all the items he owns inside a statpanel, first do some reading on Stat() proc. In the example for that proc, it shows you how to make it stat the user's inventory. Basically, this is all you would have to do:
mob/Stat()
stat(src.contents)
Simple eh? =)
I did both of those things... and i get an error :
gumbatarena.dm:33:error:/new/obj/knives/knife:bad path
Dont put a slash in front of new. just do this :
new/obj/knives/knife(src)
You might also want to make sure obj/knives/knife is a valid object type, if you have not made the object yet then you will get a similar error saying obj/knives/knife is a bad path.
new obj/knives/knife(src)