ID:263236
 
Code:
obj
fish
smallfish
icon = 'fishing.dmi'
icon_state = "smallfish"
name = "A small fish"
amount = 1
verb
Fillet()
if(usr.knife == 1)
usr << "You Fillet the fish"
var/obj/fish/fishsteak/s
for(s in usr)
s.amount += src.amount*2
s.itemcount()
return
var/obj/fish/fishsteak/S = new(usr)
S.amount = 2
S.itemcount()
else
usr << "You need a knife to fillet this fish!"
Get()
set src in oview(1)
var/obj/fish/smallfish/s
for(s in usr)
s.amount += 1
s.itemcount()
return
usr.contents += src
src.itemcount()
Drop()
var/z = input("How many?","Drop Menu")
if(z == src.amount)
src.loc = usr.loc

else
src.amount -= z
src.itemcount()
var/obj/fish/smallfish/c = new(usr.loc)
c.amount = z


Problem description:

runtime error: type mismatch
proc name: Drop (/obj/fish/smallfish/verb/Drop)
usr: the richie (/mob/characters/Male_Basic)
src: A small fish (/obj/fish/smallfish)
call stack:
A small fish (/obj/fish/smallfish): Drop()



I can't figure out why I can't drop the item properly , and the error I am getting isnt helping me much
Put in a debug.
#define DEBUG


Just stick that somewhere in your codefile.

Oh, and when checking TRUE/FALSE values:
if(var==1) // Wrong.
if(var) // Right

if(var==0) // Wrong
if(!var) // Right