ID:261834
 
runtime error: type mismatch
proc name: Adopt (/mob/kitty/verb/Adopt)
usr: Mashed_The_Hamster (/mob)
src: the kitty (/mob/kitty)
call stack:
the kitty (/mob/kitty): Adopt()


^ Thats the error..



mob/var/pet
mob
kitty
var/Owner
verb
Adopt()
if(src.Owner)
usr << "This has an owner!"
else
set src in oview(1)
switch(input("Gimmie 20 dollers.",text) in list("Yesh","Nevar"))
if("Yesh")
if(usr.cash >=20)
usr.cash = (usr.cash - 20)
src.Owner = usr.ckey
usr.pet = src //make src as the users pet.
usr << "You adopted a kitty!"
else
usr << "You dun have enough Casherz!"
if("Nevar")
usr << "Otay."

Check()
set src in oview()
if(src.Owner)
usr << "This pet belongs to [src.Owner]."
else
usr << "This pet is wild."
icon = 'pet.dmi'
icon_state = "kitty"
mob/Move()
if(src.pet) //if the player has a pet
var/mob/kitty/G = src.pet //make G = the players pet
walk_towards(G,src) //make the dog walk to the owner
..() //do the normal movement



^ thats the code..
how doo i fix it? <=|
ty...
Bump? =(
Turn on debug mode in your project (Build -> Preferences), and produce the error again so that we can see on which line the error actually occurred.