ID:680848
 
(See the best response by Albro1.)
Error:

loading Turfs.dme
Mobs.dm:24:error: gold: undefined var
Objects.dm:14:error: gold: undefined var
Mobs.dm:23:error: src.gold: undefined var



Mob code, where var 'gold' is declared.

mob
var
gold = 0

player
icon = 'Icons.dmi'
icon_state = "Player"


Object code, where the code for the obj gold is.

obj //gold
gold
icon = 'Icons.dmi'
icon_state = "Gold"
//When double clicked usr picks up gold.
DblClick()
usr.gold ++
usr << gold
src = (usr.loc)
usr << "You recieved some gold!"
del.gold
..()





Problem description: I can't figure out what I am doing wrong...I am new, so it is probably a noob mistake. Thanks for the help!

I have answered you stop spamming.
Best response
In the object code, you are outputting gold without a usr. tag. The other two errors are in your mob code. Double click those errors like it says and post the pertinent code.

You also shouldn't do del.gold. Two reasons: one is that you haven't defined what gold is. When you don't put usr or src in front of it, it assumes there is an src there and calls it as such. Unless your obj has a gold variable, you'll get an error. The second is that that is not del's syntax. Use a space or parenthesis. (Oh, and I'm assuming you are trying to delete this bag of gold once it's been picked up. So do this.)
del src
//OR
del(src)


I'm honestly not sure if one should be used over the other, but I personally use del src.
@ ATHK

I wasn't spamming, it glitched out and made 4...